CLAF90

cla.f90 is a module for parsing command-line arguments in Fortran-90.
Login

Features

Usage Example

 use cla
 ...
 call cla_init
 call cla_register(key='--input',description='inputfile',kind=cla_char,default='../prm/grid')
 call cla_register(key='-q', description='quiet flag',kind=cla_flag,default='f' )
 call cla_validate
 call cla_get('-q', lquiet)      ! assigns the value .true. to if -q is present
 call cla_get('--input',cfname)  ! assigns input filename to cfname
 ...

Download

Contributors

Acknowledgement

This software was developed with support from the Naval Research Laboratory (Grant #N00173-08-2-C015) and NASA (Grant #NNX13AH06G).