How to run:
- Create a conda environment with the following packages: numpy, scipy, matplotlib, tqdm, numba
- To run IM-RKPM-NodeRemoval_vectorization:
- update the number of timesteps (
nt) and the duration of simulation (t) inmain.py - Do
python main.py
- update the number of timesteps (
- To run fuel_cell_3d:
-
Configuration is done in
config.pyand imports are done incommon.py. To change the input parameters like domain, damage model, etc., seeconfig.py. -
Use the
run_legate.shscript to run using legate. Note that for unsupported APIs, we still convert fallback to NumPy and SciPy APIs and this is set by the parameterUSE_NUMPY_EQUIVALENTSinconfig.py. This must be set to True forlegateruns and could be True or False for NumPy/SciPy runs. -
To run using Numpy and SciPy, uncomment the following lines from
common.py- "print("Forcing use of NumPy backend by raising a false error")"
- "raise ImportError # Force use of regular NumPy instead of legate"
and then, set
USE_NUMPY_EQUIVALENTSto False, and then run,python ./main.py
-