Deprecated the old style of selecting a config file (was a compile-time parameter). The config file is now a runtime parameter and can be changed without recompilation. Usage: ./ac_run -s <path/to/config/file/relative/to/ac_run/path>. config/astaroth.conf is selected by default if the custom path is not supplied to ac_run.
This commit is contained in:
@@ -456,7 +456,7 @@ check_rk3(const AcMeshInfo& mesh_info)
|
||||
}
|
||||
|
||||
int
|
||||
run_autotest(void)
|
||||
run_autotest(const char* config_path)
|
||||
{
|
||||
#if GEN_TEST_RESULT == 1
|
||||
char testresult_path[256];
|
||||
@@ -471,7 +471,7 @@ run_autotest(void)
|
||||
|
||||
/* Parse configs */
|
||||
AcMeshInfo config;
|
||||
load_config(&config);
|
||||
load_config(config_path, &config);
|
||||
|
||||
if (STENCIL_ORDER > 6)
|
||||
printf("WARNING!!! If the stencil order is larger than the computational domain some "
|
||||
|
||||
Reference in New Issue
Block a user