Command line argument handling currently prevents use of slepc flags

Issue #195 resolved
David Dickinson created an issue

In gs2_main.fpp we parse the command line arguments and abort if any flags are passed which are not recognised

  else if (argument(1:1) == "-") then                                                                                                                                                     
    write(*, '(a)') "Error: Unrecognised argument '" // argument // "'. Usage is:" // nl // nl // usage                                                                                   
    stop 2 

This prevents us from passing flags to SLEPc via the command line, e.g. ./gs2 input.in --eps_monitor will fail.

We probably want to add something like -- to indicate we’ve finished passing the GS2 specific flags.

Comments (1)

  1. Log in to comment