⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 run_enviroment.h

📁 fdtd 3D xyzPML MPI OpenMP
💻 H
字号:
//select the compilation mode
#define USE_MPI 1 //comment out to compile without MPI

//select the run enviroment -WIN or -IBM_AIX
#ifdef _WIN32
	#include <windows.h>
    #define run_enviroment 1
#else //IBM AIX
	#include <unistd.h> //for getwd()
	#include <sys/stat.h> //for mkdir()
#endif

#include <stdio.h> //for sprintf
#include <iostream>
using namespace std;
using std::cout;
using std::cerr;
using std::endl;
using std::fixed;

#ifdef _OPENMP
	#include <omp.h>
	//IBM ReadBook: Developing and Porting C and C++ Applications on AIX 
	//Chapter 9. Program parallelization using OpenMP page 367
	//Note: In the current implementation, nested parallel regions are always
    //serialized. As a result, omp_set_nested() does not have any effect, and
    //omp_get_nested() always returns 0 on AIX.
#endif

#include <errno.h>    //for error handling
#include <cmath>
#include <cstring>
#include <ctime>

#include "Matrix.h"
#include "Load_Save_File_Data.h"

extern int errno;//error handling

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -