XGC Preprocessor Macros

Here is a list of preprocessor macros in XGC.

CYLINDRICAL
Use cylindrical geometry. B-field calculation (both poloidal and toroidal B-field) ignores R variation. Also volume elements ignores R variation.
Default: OFF
DELTAF_CONV
Use this flag for classical delta-f simulation excluding the neoclassical terms in the gyrokinetic equation
Default: OFF
EM_B_PARA_EFF
Temporary flag to prevent the use of sml_em_b_para_eff until its implementation has been confirmed as correct.
Default: OFF
F0_UPDATE_ANALYTIC_OLD
Uses old version of f0_update_analytic_f0
Default: OFF
MINIMAL_OUTPUT
Only output the bare minimum to avoid strain on file system
Default: OFF
NEWGYROMATRIX
Flag to compile with adaptive gyroaveraging matrices. (Use a thermal grid instead of a fixed grid and projects weight when preserving mu)
Default: OFF
STELLARATOR
Use this flag for 3D magnetic fields in the input (under development).
Default: OFF
UPDATE_ANALYTIC_F0_IMP_QN
Use quasineutrality correction in update_analytic_f0 when impurities are present. The correction is always present if no impurities.)
Default: OFF
USE_GPU_AWARE_MPI
Use GPU-aware MPI
Default: OFF
USE_INQUIRE_DIRECTORY
Required for determining where to put timing data. Intel fortran compiler requires this to be defined. All other compilers (?) require that this not be defined.
Default: OFF
USE_LINEAR_ADIABATIC_RESPONSE
Use linear function for adiabatic response instead of exponential function
Default: ON