Reflect version underscore of installation files

This commit is contained in:
Vitesh Shah 2020-10-29 15:21:40 +01:00
parent bd67296e8d
commit 904c338b13
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ from pathlib import Path
import damask
marc_version = float(damask.environment.options['MSCVERSION'])
marc_version = float(damask.environment.options['MSC_VERSION'])
if int(marc_version) == marc_version:
marc_version = int(marc_version)
msc_root = Path(damask.environment.options['MSC_ROOT'])
@ -15,7 +15,7 @@ damask_root = damask.environment.root_dir
parser = argparse.ArgumentParser(
description='Apply DAMASK modification to MSC.Marc/Mentat',
epilog = f'MSC_ROOT={msc_root} and MSCVERSION={marc_version} (from {damask_root}/env/CONFIG)')
epilog = f'MSC_ROOT={msc_root} and MSC_VERSION={marc_version} (from {damask_root}/env/CONFIG)')
parser.add_argument('--editor', dest='editor', metavar='string', default='vi',
help='Name of the editor for MSC.Mentat (executable)')

View File

@ -32,7 +32,7 @@ class Environment:
options = {}
for item in ['DAMASK_NUM_THREADS',
'MSC_ROOT',
'MSCVERSION',
'MSC_VERSION',
]:
options[item] = os.environ[item] if item in os.environ else None

View File

@ -8,7 +8,7 @@ from .. import environment
class Marc:
"""Wrapper to run DAMASK with MSCMarc."""
def __init__(self,version=environment.options['MSCVERSION']):
def __init__(self,version=environment.options['MSC_VERSION']):
"""
Create a Marc solver object.