ForestClaw / forestclaw

Quadtree/octree adaptive PDE solver based based on p4est.
http://www.forestclaw.org
BSD 2-Clause "Simplified" License
58 stars 22 forks source link

command line switches don't work #71

Closed donnaaboise closed 7 years ago

donnaaboise commented 9 years ago

Originally reported by: Donna Calhoun (Bitbucket: donnaaboise, GitHub: donnaaboise)


Attempting to set command line arguments that should be switches does not appear to work.

#!bash
(bash) ~/.../advection/2d/torus (trapfpe_fix) % torus --trapfpe=F
[libsc] This is libsc 1.0.28-d577
[libsc] CPP                      mpicc -E
[libsc] CPPFLAGS                 
.......
[libsc]    --use_fixed_dt                       Use fixed coarse grid time step [F]
[libsc]    --run_diagnostics                    Run diagnostics [F]
[libsc]    --subcycle                           Use subcycling in time [F]
[libsc]    --noweightedp                        No weighting when subcycling [F]
[libsc]    --trapfpe                            Enable floating point exceptions [F]
.......
[libsc]    --mthlim=<STRING>                    Waves limiters (one for each wave)
[libsc]    -W <INIFILE> | --fclaw2d_clawpack.ini=<INIFILE> Read clawpack options from this file [default : fclaw2d_clawpack.ini]
[libsc 0] Abort: Option parsing failed; please see above usage information
[libsc 0] Abort: ../../p4est/sc/src/sc.c:690
[libsc 0] Abort
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
(bash) ~/.../advection/2d/torus (trapfpe_fix) % 

donnaaboise commented 9 years ago

Original comment by Donna Calhoun (Bitbucket: donnaaboise, GitHub: donnaaboise):


everything works as advertised - I think I was trying to read the command line more than once, or something.