Disabled forcing and upwinding for performance tests. Set default grid size to 512^3. Set default cmake params s.t. benchmarks can be reproduced out-of-the-box.

This commit is contained in:
jpekkila
2020-06-02 14:08:34 +03:00
parent a753ca92f2
commit 0d80834619
4 changed files with 11 additions and 11 deletions

View File

@@ -30,11 +30,11 @@ endif()
message(STATUS "Build type: " ${CMAKE_BUILD_TYPE}) message(STATUS "Build type: " ${CMAKE_BUILD_TYPE})
## Options ## Options
option(DOUBLE_PRECISION "Generates double precision code." OFF) option(DOUBLE_PRECISION "Generates double precision code." ON)
option(BUILD_SAMPLES "Builds projects in samples subdirectory." OFF) option(BUILD_SAMPLES "Builds projects in samples subdirectory." ON)
option(BUILD_STANDALONE "Builds standalone Astaroth." ON) option(BUILD_STANDALONE "Builds standalone Astaroth." OFF)
option(MPI_ENABLED "Enables additional functions for MPI communciation." OFF) option(MPI_ENABLED "Enables additional functions for MPI communciation." ON)
option(MULTIGPU_ENABLED "Enables multi-GPU on a single node. Uses peer-to-peer communication instead of MPI. Affects Legacy & Node layers only." ON) option(MULTIGPU_ENABLED "Enables multi-GPU on a single node. Uses peer-to-peer communication instead of MPI. Affects Legacy & Node layers only." OFF)
## Options (DEPRECATED) ## Options (DEPRECATED)
# option(BUILD_DEBUG "Builds the program with extensive error checking" OFF) # option(BUILD_DEBUG "Builds the program with extensive error checking" OFF)

View File

@@ -5,8 +5,8 @@
#define LMAGNETIC (1) #define LMAGNETIC (1)
#define LENTROPY (1) #define LENTROPY (1)
#define LTEMPERATURE (0) #define LTEMPERATURE (0)
#define LFORCING (1) #define LFORCING (0)
#define LUPWD (1) #define LUPWD (0)
#define LSINK (0) #define LSINK (0)
#define AC_THERMAL_CONDUCTIVITY (0.001) // TODO: make an actual config parameter #define AC_THERMAL_CONDUCTIVITY (0.001) // TODO: make an actual config parameter

View File

@@ -5,9 +5,9 @@
* "Compile-time" params * "Compile-time" params
* ============================================================================= * =============================================================================
*/ */
AC_nx = 128 AC_nx = 512
AC_ny = 128 AC_ny = 512
AC_nz = 128 AC_nz = 512
AC_dsx = 0.04908738521 AC_dsx = 0.04908738521
AC_dsy = 0.04908738521 AC_dsy = 0.04908738521

View File

@@ -39,7 +39,7 @@
#define LENTROPY (1) #define LENTROPY (1)
#define LTEMPERATURE (0) #define LTEMPERATURE (0)
#define LFORCING (0) #define LFORCING (0)
#define LUPWD (1) #define LUPWD (0)
#define AC_THERMAL_CONDUCTIVITY ((Scalar)(0.001)) // TODO: make an actual config parameter #define AC_THERMAL_CONDUCTIVITY ((Scalar)(0.001)) // TODO: make an actual config parameter
typedef AcReal Scalar; typedef AcReal Scalar;