Changeset af7a97c in sasmodels
- Timestamp:
- Jul 17, 2018 11:29:53 AM (6 years ago)
- Branches:
- master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 4341dd4
- Parents:
- 1a3559f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/compare.py
r1e7b202a raf7a97c 112 112 -edit starts the parameter explorer 113 113 -help/-html shows the model docs instead of running the model 114 115 === environment variables === 116 -DSAS_MODELPATH=path sets directory containing custom models 117 -DSAS_OPENCL=vendor:device|none sets the target OpenCL device 118 -DXDG_CACHE_HOME=~/.cache sets the pyopencl cache root (linux only) 119 -DSAS_COMPILER=tinycc|msvc|mingw|unix sets the DLL compiler 120 -DSAS_OPENMP=1 turns on OpenMP for the DLLs 121 -DSAS_DLL_PATH=path sets the path to the compiled modules 114 122 115 123 The interpretation of quad precision depends on architecture, and may … … 1113 1121 1114 1122 invalid = [o[1:] for o in flags 1115 if o[1:] not in NAME_OPTIONS 1116 and not any(o.startswith('-%s='%t) for t in VALUE_OPTIONS)] 1123 if not (o[1:] in NAME_OPTIONS 1124 or any(o.startswith('-%s='%t) for t in VALUE_OPTIONS) 1125 or o.startswith('-D'))] 1117 1126 if invalid: 1118 1127 print("Invalid options: %s"%(", ".join(invalid))) … … 1215 1224 elif arg == '-html': opts['html'] = True 1216 1225 elif arg == '-help': opts['html'] = True 1226 elif arg.startswith('-D'): 1227 var, val = arg[2:].split('=') 1228 os.environ[var] = val 1217 1229 # pylint: enable=bad-whitespace,C0321 1218 1230
Note: See TracChangeset
for help on using the changeset viewer.