00001
00002
00003 #ifndef _included_GridHierarchyCalls_h
00004 #define _included_GridHierarchyCalls_h
00005
00011
00012
00013
00014
00015 inline void SetBaseGrid(GridHierarchy &GH, double const *bbox, int const *shape,
00016 const int& ncuts, const int *cuts)
00017 { GH.DAGH_SetBaseGrid(bbox, shape, ncuts, cuts); }
00018 inline void SetTimeSpecs(GridHierarchy &GH, double const starttime,
00019 double const stoptime, int const numtsteps)
00020 { GH.DAGH_SetTimeSpecs(starttime,stoptime,numtsteps); }
00021
00022 inline void SetBoundaryType(GridHierarchy &GH, int const type)
00023 { GH.DAGH_SetBoundaryType(type); }
00024 inline void SetAdaptBoundaryType(GridHierarchy &GH, int const type)
00025 { GH.DAGH_SetAdaptBoundaryType(type); }
00026 inline void SetBoundaryWidth(GridHierarchy &GH, int const width)
00027 { GH.DAGH_SetBoundaryWidth(width); }
00028 inline void SetPeriodicBoundaries(GridHierarchy &GH, int const dir, int const value)
00029 { GH.DAGH_SetPeriodicBoundaries(dir,value); }
00030
00031 inline void SetExternalGhostWidth(GridHierarchy &GH, int const width)
00032 { GH.DAGH_SetExternalGhostWidth(width); }
00033
00034 inline void SetRefineFactor(GridHierarchy &GH, int const rfactor)
00035 { GH.DAGH_SetRefineFactor(rfactor); }
00036 inline void SetRefineFactor(GridHierarchy &GH, int const lev, int const rfactor)
00037 { GH.DAGH_SetRefineFactor(lev,rfactor); }
00038
00039 inline void SetDistributionType(GridHierarchy &GH, int const type)
00040 { GH.DAGH_SetDistributionType(type); }
00041
00042 inline void SetDistributionType(GridHierarchy &GH, int const type, BBoxList& bbl)
00043 { GH.DAGH_SetDistributionType(type,bbl); }
00044
00045 inline void SetWorkFunction(GridHierarchy &GH, void *wf)
00046 { GH.DAGH_SetWorkFunction(wf); }
00047
00048 inline void ComposeHierarchy(GridHierarchy &GH)
00049 { GH.DAGH_ComposeHierarchy(); }
00050
00051 inline void ComposeGridFunctions(GridHierarchy &GH)
00052 { GH.DAGH_ComposeGridFunctions(); }
00053
00054 inline int GridFunctionTemplate(GridHierarchy& GH, GridFunctionVoid& GFV)
00055 { return (GH.DAGH_GridFunctionTemplate(GFV)); }
00056
00057
00058
00059
00060 inline void SetCurrentTime(GridHierarchy &GH, int const ctime, int const lev)
00061 { GH.setCurrentTime(ctime, lev); }
00062 inline int CurrentTime(GridHierarchy &GH, int const lev)
00063 { return (GH.getCurrentTime(lev)); }
00064 inline void IncrCurrentTime(GridHierarchy &GH, int const lev)
00065 { GH.incrCurrentTime(lev); }
00066
00067 inline int StepSize(GridHierarchy &GH, int const lev)
00068 { return (GH.stepsize(lev)); }
00069
00070 inline int TimeStep(GridHierarchy &GH, int const lev)
00071 { return (GH.timestep(lev)); }
00072
00073 inline int AbsStepsTaken(GridHierarchy &GH, int const lev)
00074 { return (GH.stepstaken(GH.getCurrentTime(lev)+GH.timestep(lev),lev)); }
00075 inline int StepsTaken(GridHierarchy &GH, int const lev)
00076 { return (GH.stepstaken(GH.getCurrentTime(lev),lev)); }
00077
00078 inline int RefineFactor(GridHierarchy &GH, int const lev)
00079 { return (GH.refinefactor(lev)); }
00080 inline int RefinedBy(GridHierarchy &GH, int const lev)
00081 { return (GH.refinedby(lev)); }
00082
00083 inline int TotalLevels(GridHierarchy &GH)
00084 { return (GH.totallevels()); }
00085 inline int MaxLevel(GridHierarchy &GH)
00086 { return (GH.maxlevel()); }
00087 inline int CoarseLevel(GridHierarchy &GH)
00088 { return (GH.coarselevel()); }
00089 inline int FineLevel(GridHierarchy &GH)
00090 { return (GH.finelevel()); }
00091
00092 inline double DeltaT(GridHierarchy &GH, int const level)
00093 { return (GH.delta_t(level)); }
00094 inline double DeltaX(GridHierarchy &GH, int const dim, int const level)
00095 { return (GH.delta_x(dim,level)); }
00096
00097
00098
00099
00100 inline const int& GuCFactor(GridHierarchy &GH)
00101 { return (GH.gucfactor()); }
00102 inline void SetGuCFactor(GridHierarchy &GH, const int& cfac)
00103 { GH.setgucfactor(cfac); }
00104
00105
00106
00107
00108 inline const int& MaxGridBoxSize(GridHierarchy &GH)
00109 { return (GH.maxGridBoxSize()); }
00110 inline void SetMaxGridBoxSize(GridHierarchy &GH, const int& gbsize)
00111 { GH.setmaxGridBoxSize(gbsize); }
00112
00113
00114
00115
00116 inline int UpdatedValueAt(GridHierarchy &GH) { return (GH.updatedvaluestep()); }
00117 inline void SetUpdatedValueStep(GridHierarchy &GH, const int ustep)
00118 { GH.setupdatedvaluestep(ustep); }
00119
00120
00121
00122
00123 inline void Refine(GridHierarchy &GH, int const lev)
00124 { GH.DAGH_Refine(lev); }
00125
00126 inline void Refine(GridHierarchy &GH, BBoxList &bblist, int const lev)
00127 { GH.DAGH_Refine(bblist, lev); }
00128
00129 inline void RecomposeHierarchy(GridHierarchy &GH)
00130 { GH.DAGH_RecomposeHierarchy(); }
00131
00132 inline void RecomposeHierarchy(GridHierarchy &GH, int Partition)
00133 { GH.DAGH_RecomposeHierarchy(Partition); }
00134
00135
00136
00137
00138 inline const int& TimeRefineWL(GridHierarchy &GH)
00139 { return (GH.timerefinewl()); }
00140 inline void SetTimeRefineWL(GridHierarchy &GH, const int& tref)
00141 { GH.settimerefinewl(tref); }
00142
00143
00144
00145
00146 inline void RedistributeHierarchy(GridHierarchy &GH, const int type)
00147 { GH.DAGH_RedistributeHierarchy(type); }
00148 inline void RedistributeHierarchy(GridHierarchy &GH, const int type, BBoxList& bbl)
00149 { GH.DAGH_RedistributeHierarchy(type, bbl); }
00150
00151
00152
00153
00154 inline void Checkpoint(GridHierarchy &GH, const char* name)
00155 { GH.DAGH_Checkpoint(name); }
00156
00157 inline void ComposeHierarchy(GridHierarchy &GH,
00158 const char* name)
00159 { GH.DAGH_ComposeHierarchy(name); }
00160
00161 inline bool RecomposeHierarchy(GridHierarchy &GH,
00162 const char* name)
00163 { return GH.DAGH_RecomposeHierarchy(name); }
00164
00165
00166
00167
00168 inline void Sync(GridHierarchy &GH, int const t, int const l)
00169 { GH.DAGH_SyncGhostRegions(t, l); }
00170 inline void Sync(GridHierarchy &GH, int const t, int const l,
00171 int const axis, int const dir)
00172 { GH.DAGH_SyncGhostRegions(t, l, axis, dir); }
00173
00174
00175
00176
00177 inline void DAGHSetIOType(GridHierarchy &GH, short const type)
00178 { GH.DAGH_SetIOType(type); }
00179 inline const short& DAGHIOType(GridHierarchy &GH)
00180 { return GH.DAGH_IOType(); }
00181 inline DAGHIO_WriteFunc DAGHIOWrite(GridHierarchy &GH)
00182 { return GH.DAGH_IOWrite(); }
00183 inline DAGHIO_ReadFunc DAGHIORead(GridHierarchy &GH)
00184 { return GH.DAGH_IORead(); }
00185 inline void DAGHIOFlush(GridHierarchy &GH)
00186 { GH.DAGH_IOFlush(); }
00187 inline void DAGHIOClose(GridHierarchy &GH)
00188 { GH.DAGH_IOClose(); }
00189 inline void DAGHIOEnd(GridHierarchy &GH)
00190 { GH.DAGH_IOEnd(); }
00191
00192 #endif