#include #include #include "TwoPhase.h" #include "common/MPI_Helpers.h" #include "Communication.h" #include "IO/Mesh.h" #include "IO/Writer.h" #include "ProfilerApp.h" #define RADIUS 15 #define CAPRAD 20 #define HEIGHT 15.5 #define N 60 #define SPEED -1 #define PI 3.14159 int main (int argc, char *argv[]) { // Initialize MPI int rank,nprocs; MPI_Init(&argc,&argv); MPI_Comm_rank(MPI_COMM_WORLD,&rank); MPI_Comm_size(MPI_COMM_WORLD,&nprocs); int npx,npy,npz; int i,j,k,n; int Nx,Ny,Nz; double Lx,Ly,Lz; Nx=Ny=Nz=N; npx=npy=npz=1; Lx=Ly=Lz=1.0; int BC=0; // periodic boundary condition Domain Dm(Nx,Ny,Nz,rank,npx,npy,npz,Lx,Ly,Lz,BC); for (i=0; i 0.01){ printf("TestInterfaceSpeed: Error too high for kinematic velocity of wn interface \n"); toReturn=1; } if ( fabs(Averages.vawns_global(2)+0.2) > 0.01){ printf("TestInterfaceSpeed: Error too high for kinematic velocity of common curve \n"); toReturn=2; } return toReturn; // **************************************************** MPI_Barrier(MPI_COMM_WORLD); return 0; MPI_Finalize(); // **************************************************** }