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