Tuesday, 5 January 2021

ifndef, ese, endif directives in Fortran (and VASP)

 These #ifndef, #else and #endif are the preprocessor directives which are used to select the part of the code while compiling. These conditions are used to compile a specific part of the code if certain condition is met.

Generally used directives are :

#if

#ifdef

#ifndef

In addition to these, else and elif also can be used.



No comments:

Post a Comment

Reason for the Maximum index for Augmentation-charges (SET IRDMAX)" error in OUTCAR file: VASP Calculation.

 "The Maximum index for Augmentation-charges (SET IRDMAX)" error is most-likely due to parallelization issues.  To check this, try...