#include <mpi++.h>#include <math.h>#include <string.h>#include <stdio.h>#include <assert.h>#include <stdlib.h>#include <unistd.h>#include "wakevortex.h"#include "dataserver.h"#include "alloc.h"#include "main.h"Defines | |
| #define | VORTEX_INP_FILE "vortex.inp" |
| #define | DEBUGCOND (V->iter < 0) |
| #define | MASTER (myRank == 0) |
| #define | ENTER_CRITICAL(D, keyword) |
| #define | LEAVE_CRITICAL(D, keyword) if (MASTER) D->Post(keyword) |
Functions | |
| double | ComputeWakeVortexParallel (Vortex *V, int iter) |
| void | ComputeDistanceFromAirport (int i, Vortex *V) |
| void | SendWing (Vortex *V, int wingID, int target) |
| void | RecvWing (Vortex *V, int wingID, int source) |
| int | computeDelay () |
| void | UpdateVortex (Vortex *V) |
| void | UpdateData (Vortex *V, DataServer *R) |
| REGISTER_DATA_BLOCK () | |
| int | main (int argc, char *argv[]) |
Variables | |
| Vortex * | vort = NULL |
| int | delay = 1000 |
| int | run_flag = 0 |
| int | time_per_iter = 20 |
| double | global_dt = 0.0 |
| int | global_nwakemax = 1000 |
| int | numCPUs = 1 |
| int | myRank = 0 |
| int | exit_flag = 0 |
| double | time_elapsed = 0.0 |
| double | timer_start = 0.0 |
| int | isLagging = 0 |
| int | kn = 5 |
| int | iv_flag = 1 |
| double | max_tracking_distance = 1000.0 |
| double | simtime = 0.0 |
| int | global_iter = 0 |
| double | airport_center [3] = {0.0,0.0,0.0} |
| ofstream | outf |
|
|
|
|
|
Value: if (MASTER) D->Wait(keyword); \
MPI::COMM_WORLD.Barrier() \
; |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001