From fb34efdbb35db75b1ed31fbd3d4d4183d7c98164 Mon Sep 17 00:00:00 2001 From: Miikka Vaisala Date: Tue, 24 Sep 2019 11:08:10 +0800 Subject: [PATCH] New running instructions. After the merge, the old istructions are now deprecated. I still leave them here for making the README revision easier later. --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4ab9750..6a0bd96 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,16 @@ There are two ways to build the code as instructed below. If you encounter issues, recheck that the 3rd party libraries were successfully built during the previous step. -### Method I: In the code directory + +### New approach + +`` +mkdir whatever && cd whatever # Sourcing not required anymore +cmake -DDSL_MODULE_DIR=acc/mhd_solver .. && make -j +./ac_run -t ../config/astaroth.conf +`` + +### Method I: In the code directory (DEPRECATED. REVISE.) 1. `cd build/` 1. `cmake -DDOUBLE_PRECISION=OFF -DBUILD_DEBUG=OFF ..` (Use `cmake -D CMAKE_C_COMPILER=icc -D CMAKE_CXX_COMPILER=icpc -DDOUBLE_PRECISION=OFF -DBUILD_DEBUG=OFF ..` if compiling on TIARA) @@ -28,7 +37,7 @@ If you encounter issues, recheck that the 3rd party libraries were successfully Edit `config/astaroth.conf` to change the numerical setup. -### Method II: With a script in a custom build directory (RECOMMENDED) +### Method II: With a script in a custom build directory (DEPRECATED. REVISE.) 1. `source sourceme.sh` to add relevant directories to the `PATH` 1. `ac_mkbuilddir.sh -b my_build_dir/` to set up a custom build directory. There are also other options available. See `ac_mkbuilddir.sh -h` for more.