Updated default config

This commit is contained in:
Edgar P. Burkhart 2022-01-23 10:07:32 +01:00
parent cae6780831
commit 181448fc3f
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -6,11 +6,10 @@ parser = argparse.ArgumentParser(
parser.add_argument('var', type=str, parser.add_argument('var', type=str,
help='OpenFoam variable to display') help='OpenFoam variable to display')
parser.add_argument('-c', '--config', type=str, parser.add_argument('-c', '--config', type=str,
help='Configuration file') default='config.ini',
help='Configuration file (default config.ini)')
args = parser.parse_args() args = parser.parse_args()
if args.config == None:
args.config = 'config.ini'
if args.var == 'alpha.water': if args.var == 'alpha.water':
import alpha_water import alpha_water