Gowdy solver
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
sys/hpc.h
Go to the documentation of this file.
00001 /**
00002  *  @file      hpc.h
00003  *  @brief     High-Performance Computing (HPC) support.
00004  *  @author    Mikica Kocic
00005  *  @copyright GNU General Public License (GPLv3).
00006  */
00007 
00008 #if _OPENMP
00009 
00010     #include <omp.h> // Use Open Multi-Processing (OMP)
00011 
00012     /** `OMP_parallel_for` indicates a parallelizable `for` loop.
00013      */
00014     #define OMP_parallel_for  _Pragma("omp parallel for") for
00015 
00016     // #define OMP_parallel_for  __pragma(omp parallel for) for  /* on windows */
00017 
00018 #else
00019     #define OMP_parallel_for  for
00020 #endif
00021 
00022 #ifdef _USEMPI
00023     #include "mpiWorld.h"   // Use the real Message Passing Interface (MPI)
00024 #else
00025     #include "mpiDummyWorld.h"
00026 #endif