run_enviroment.h

来自「用vc编写的FDTD有限差分程序」· C头文件 代码 · 共 39 行

H
39
字号
//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 + =
减小字号Ctrl + -
显示快捷键?