Single-point loop related definitions/macros PER-POINT LOOPS. More...

Go to the source code of this file.
Macros | |
| #define | PLOOP(pliter, pl) for(pliter=nprstart,pl=nprlist[pliter];pliter<=nprend;pliter++,pl=nprlist[pliter]) |
| PLOOP controls looping over conserved or primitive -type quantities except during interpolation or other listed below. More... | |
| #define | PRIMLOOP(pliter, pl) PLOOP(pliter,pl) |
| #define | PINTERPLOOP(pliter, pl) for(pliter=npr2interpstart,pl=npr2interplist[pliter];pliter<=npr2interpend;pliter++,pl=npr2interplist[pliter]) |
| #define | PNOTINTERPLOOP(pliter, pl) for(pliter=npr2notinterpstart,pl=npr2notinterplist[pliter];pliter<=npr2notinterpend;pliter++,pl=npr2notinterplist[pliter]) |
| #define | PBOUNDLOOP(pliter, pl) for(pliter=nprboundstart,pl=nprboundlist[pliter];pliter<=nprboundend;pliter++,pl=nprboundlist[pliter]) |
| loop over all bounding Primitive variables More... | |
| #define | PFLUXBOUNDLOOP(pliter, pl) for(pliter=nprfluxboundstart,pl=nprfluxboundlist[pliter];pliter<=nprfluxboundend;pliter++,pl=nprfluxboundlist[pliter]) |
| loop over all bounding flux variables More... | |
| #define | PDUMPLOOP(pliter, pd) for(pliter=nprdumpstart,pd=nprdumplist[pliter];pliter<=nprdumpend;pliter++,pd=nprdumplist[pliter]) |
| loop over all dumped Primitive variables More... | |
| #define | PINVERTLOOP(pliter, pi) for(pliter=nprinvertstart,pl=nprinvertlist[pliter];pliter<=nprinvertend;pliter++,pl=nprinvertlist[pliter]) |
| loop over all inversion Primitive variables – only over 5 quantities (not field) More... | |
| #define | NUMPRIMLOOP(pliter, pl) for(pliter=nprlocalstart,pl=nprlocallist[pliter];pliter<=nprlocalend;pliter++,pl=nprlocallist[pliter]) |
| to be used locally: More... | |
| #define | PALLLOOP(pl) for(pl=0;pl<NPR;pl++) |
| always goes over all conserved More... | |
| #define | PALLLOOPSPECIAL(pl, special) for(pl=0;pl<NPR+special;pl++) |
| #define | PLOOPSPECIALONLY(pl, special) for(pl=NPR;pl<NPR+special;pl++) |
| #define | PALLREALLOOP(pl) for(pl=0;pl<NPRREALSET;pl++) |
| always goes over all conserved More... | |
| #define | PMAXNPRLOOP(pl) for(pl=0;pl<MAXNPR;pl++) |
| goes over all/any npr lists for copying one list to another More... | |
| #define | PLOOPALLINVERT(pl) for(pl=0;pl<=B3;pl++) |
| always goes over all standard invertable quantities for inversion to operate normally More... | |
| #define | PLOOPALLINTERP(pl) for(pl=0;pl<NPR2INTERP;pl++) |
| always goes over all interpolatable primitives More... | |
| #define | PDIAGLOOP(pl) PALLLOOP(pl) |
| always goes over all primitives More... | |
| #define | PLOOPNOB1(pl) for(pl=0;pl<B1;pl++) |
| #define | PLOOPBONLY(pl) for(pl=B1;pl<=B3;pl++) |
| #define | PLOOPNOB2(pl) for(pl=B3+1;pl<NPR;pl++) |
| #define | PLOOPNOB2SPECIAL(pl, special) for(pl=B3+1;pl<NPR+special;pl++) |
| #define | PLOOPRADONLY(pl) for(pl=PRAD0;pl<=PRAD3;pl++) |
| #define | DLOOP(j, k) for(j=0;j<NDIM;j++)for(k=0;k<NDIM;k++) |
| loop over all Dimensions; second rank loop More... | |
| #define | DLOOPA(j) for(j=0;j<NDIM;j++) |
| loop over all Dimensions; first rank loop More... | |
| #define | SLOOP(j, k) for(j=1;j<NDIM;j++)for(k=1;k<NDIM;k++) |
| loop over all Space dimensions; second rank loop More... | |
| #define | SLOOPA(j) for(j=1;j<NDIM;j++) |
| loop over all Space dimensions; first rank loop More... | |
| #define | DSLOOP(j, k) for(j=0;j<NDIM;j++)for(k=1;k<NDIM;k++) |
| loop over all for j and Space for k; second rank loop More... | |
| #define | SSLOOP(j, k) for(j=1;j<NDIM;j++)for(k=1;k<NDIM;k++) |
| space-space More... | |
| #define | SDLOOP(j, k) for(j=1;j<NDIM;j++)for(k=0;k<NDIM;k++) |
| loop over all for k and Space for j; second rank loop More... | |
| #define | DIRLOOP(dir) for(dir=0;dir<COMPDIM*2;dir++) |
| loop over directions More... | |
| #define | DIRSIGNLOOP(dirsign) for(dirsign=-1;dirsign<=1;dirsign+=2) |
| #define | DIMENLOOP(dir) for(dir=1;dir<=COMPDIM;dir++) |
| #define | GRIDLOOP(gridpos) for(gridpos=0;gridpos<NPG;gridpos++) |
| loop over grid positions (used for file writing since not normally done) More... | |
| #define | FBOUNDLOOP(ff) for(ff=0;ff<NUMPFLAGSBOUND;ff++) |
| PER-POINT LOOPS (MORE RELATED TO NOT BEING PRIMITIVE OR CONSERVED) More... | |
| #define | JETLOOP(jetio) for(jetio=0;jetio<NUMJETS;jetio++) |
| loop over jet regions More... | |
| #define | ENERREGIONLOOP(enerregion) for(enerregion=0;enerregion<NUMENERREGIONS;enerregion++) if(dothisenerreg[enerregion]) |
| loop over ener/flux regions More... | |
| #define | ENERREGIONALLLOOP(enerregion) for(enerregion=0;enerregion<NUMENERREGIONS;enerregion++) |
| loop over ALL ener/flux regions More... | |
| #define | FLOORLOOP(floor) for(floor=0;floor<NUMFAILFLOORFLAGS;floor++) |
| loop over fair/floor types More... | |
| #define | TSCALELOOP(tscale) for(tscale=0;tscale<NUMTSCALES;tscale++) |
| loop over debug time scales More... | |
| #define | SCLOOP(sc) for(sc=0;sc<NUMSOURCES;sc++) |
| loop over ALL sources (including geometry) More... | |
| #define | SCPHYSICSLOOP(sc) for(sc=GEOMSOURCE+1;sc<NUMSOURCES;sc++) |
| loop over all sources EXCEPT geometry (assumes GEOMSOURCE==0 or at least nothing before GEOMSOURCE matters) More... | |
| #define | FLLOOP(fl) for(fl=0;fl<NUMFLUXTERMS;fl++) |
| loop over fluxterms More... | |
| #define | PFLAGLOOP(pf) for(pf=0;pf<NUMPFLAGS;pf++) |
| loop over pflag flags More... | |
| #define | FAILPFLAGLOOP(pf) for(pf=0;pf<NUMFAILPFLAGS;pf++) |
| loop over fail pflag flags More... | |
| #define | ROMIOCOLLOOP(romiocoliter) for(romiocoliter=0;romiocoliter<romiocloopend;romiocoliter++) |
| for USEMPI&&USEROMIO==1 More... | |
| #define | BUFFERINIT nextbuf=0 |
| #define | COLINIT nextcol=0 |
| #define | COLLOOP(coliter) for(coliter=0;coliter<numfiles;coliter++) |
| for mpicombie==0 More... | |
| #define | DTSTAGELOOP(dtstage) for(dtstage=0;dtstage<MAXITERDTSTAGES;dtstage++) |
| #define | INTERPENOTYPELOOP(interpi) for(interpi=0;interpi<NUMENOINTERPTYPES;interpi++) |
| #define | ENODEBUGLOOP(enodebugi) for(enodebugi=0;enodebugi<NUMENODEBUGS;enodebugi++) |
| #define | FINALSTEPLOOP(indexfinalstep) for(indexfinalstep=0;indexfinalstep<=1;indexfinalstep++) |
| simple loop over 0 and 1 for failfloorcount[] More... | |
| #define | FAILFLOORLOOP(indexfinalstep, tscale, floor) FINALSTEPLOOP(indexfinalstep) TSCALELOOP(tscale) FLOORLOOP(floor) |
Single-point loop related definitions/macros PER-POINT LOOPS.
Definition in file global.loops.perpoint.h.
| #define BUFFERINIT nextbuf=0 |
Definition at line 215 of file global.loops.perpoint.h.
| #define COLINIT nextcol=0 |
Definition at line 216 of file global.loops.perpoint.h.
| #define COLLOOP | ( | coliter | ) | for(coliter=0;coliter<numfiles;coliter++) |
for mpicombie==0
Definition at line 219 of file global.loops.perpoint.h.
| #define DIMENLOOP | ( | dir | ) | for(dir=1;dir<=COMPDIM;dir++) |
Definition at line 160 of file global.loops.perpoint.h.
| #define DIRLOOP | ( | dir | ) | for(dir=0;dir<COMPDIM*2;dir++) |
loop over directions
Definition at line 155 of file global.loops.perpoint.h.
| #define DIRSIGNLOOP | ( | dirsign | ) | for(dirsign=-1;dirsign<=1;dirsign+=2) |
Definition at line 157 of file global.loops.perpoint.h.
loop over all Dimensions; second rank loop
Definition at line 140 of file global.loops.perpoint.h.
loop over all Dimensions; first rank loop
Definition at line 142 of file global.loops.perpoint.h.
loop over all for j and Space for k; second rank loop
Definition at line 148 of file global.loops.perpoint.h.
| #define DTSTAGELOOP | ( | dtstage | ) | for(dtstage=0;dtstage<MAXITERDTSTAGES;dtstage++) |
Definition at line 222 of file global.loops.perpoint.h.
| #define ENERREGIONALLLOOP | ( | enerregion | ) | for(enerregion=0;enerregion<NUMENERREGIONS;enerregion++) |
loop over ALL ener/flux regions
Definition at line 187 of file global.loops.perpoint.h.
| #define ENERREGIONLOOP | ( | enerregion | ) | for(enerregion=0;enerregion<NUMENERREGIONS;enerregion++) if(dothisenerreg[enerregion]) |
loop over ener/flux regions
Definition at line 184 of file global.loops.perpoint.h.
| #define ENODEBUGLOOP | ( | enodebugi | ) | for(enodebugi=0;enodebugi<NUMENODEBUGS;enodebugi++) |
Definition at line 226 of file global.loops.perpoint.h.
| #define FAILFLOORLOOP | ( | indexfinalstep, | |
| tscale, | |||
| floor | |||
| ) | FINALSTEPLOOP(indexfinalstep) TSCALELOOP(tscale) FLOORLOOP(floor) |
Definition at line 231 of file global.loops.perpoint.h.
| #define FAILPFLAGLOOP | ( | pf | ) | for(pf=0;pf<NUMFAILPFLAGS;pf++) |
loop over fail pflag flags
Definition at line 210 of file global.loops.perpoint.h.
| #define FBOUNDLOOP | ( | ff | ) | for(ff=0;ff<NUMPFLAGSBOUND;ff++) |
PER-POINT LOOPS (MORE RELATED TO NOT BEING PRIMITIVE OR CONSERVED)
loop over fail flag in boundary code
Definition at line 178 of file global.loops.perpoint.h.
| #define FINALSTEPLOOP | ( | indexfinalstep | ) | for(indexfinalstep=0;indexfinalstep<=1;indexfinalstep++) |
simple loop over 0 and 1 for failfloorcount[]
Definition at line 229 of file global.loops.perpoint.h.
| #define FLLOOP | ( | fl | ) | for(fl=0;fl<NUMFLUXTERMS;fl++) |
loop over fluxterms
Definition at line 203 of file global.loops.perpoint.h.
| #define FLOORLOOP | ( | floor | ) | for(floor=0;floor<NUMFAILFLOORFLAGS;floor++) |
loop over fair/floor types
Definition at line 190 of file global.loops.perpoint.h.
| #define GRIDLOOP | ( | gridpos | ) | for(gridpos=0;gridpos<NPG;gridpos++) |
loop over grid positions (used for file writing since not normally done)
Definition at line 164 of file global.loops.perpoint.h.
| #define INTERPENOTYPELOOP | ( | interpi | ) | for(interpi=0;interpi<NUMENOINTERPTYPES;interpi++) |
Definition at line 224 of file global.loops.perpoint.h.
| #define JETLOOP | ( | jetio | ) | for(jetio=0;jetio<NUMJETS;jetio++) |
loop over jet regions
Definition at line 181 of file global.loops.perpoint.h.
| #define NUMPRIMLOOP | ( | pliter, | |
| pl | |||
| ) | for(pliter=nprlocalstart,pl=nprlocallist[pliter];pliter<=nprlocalend;pliter++,pl=nprlocallist[pliter]) |
to be used locally:
Definition at line 70 of file global.loops.perpoint.h.
| #define PALLLOOP | ( | pl | ) | for(pl=0;pl<NPR;pl++) |
always goes over all conserved
Definition at line 102 of file global.loops.perpoint.h.
| #define PALLLOOPSPECIAL | ( | pl, | |
| special | |||
| ) | for(pl=0;pl<NPR+special;pl++) |
Definition at line 103 of file global.loops.perpoint.h.
| #define PALLREALLOOP | ( | pl | ) | for(pl=0;pl<NPRREALSET;pl++) |
always goes over all conserved
Definition at line 109 of file global.loops.perpoint.h.
| #define PBOUNDLOOP | ( | pliter, | |
| pl | |||
| ) | for(pliter=nprboundstart,pl=nprboundlist[pliter];pliter<=nprboundend;pliter++,pl=nprboundlist[pliter]) |
loop over all bounding Primitive variables
Definition at line 57 of file global.loops.perpoint.h.
| #define PDIAGLOOP | ( | pl | ) | PALLLOOP(pl) |
always goes over all primitives
Definition at line 123 of file global.loops.perpoint.h.
| #define PDUMPLOOP | ( | pliter, | |
| pd | |||
| ) | for(pliter=nprdumpstart,pd=nprdumplist[pliter];pliter<=nprdumpend;pliter++,pd=nprdumplist[pliter]) |
loop over all dumped Primitive variables
Definition at line 63 of file global.loops.perpoint.h.
| #define PFLAGLOOP | ( | pf | ) | for(pf=0;pf<NUMPFLAGS;pf++) |
loop over pflag flags
Definition at line 207 of file global.loops.perpoint.h.
| #define PFLUXBOUNDLOOP | ( | pliter, | |
| pl | |||
| ) | for(pliter=nprfluxboundstart,pl=nprfluxboundlist[pliter];pliter<=nprfluxboundend;pliter++,pl=nprfluxboundlist[pliter]) |
loop over all bounding flux variables
Definition at line 60 of file global.loops.perpoint.h.
| #define PINTERPLOOP | ( | pliter, | |
| pl | |||
| ) | for(pliter=npr2interpstart,pl=npr2interplist[pliter];pliter<=npr2interpend;pliter++,pl=npr2interplist[pliter]) |
Definition at line 53 of file global.loops.perpoint.h.
| #define PINVERTLOOP | ( | pliter, | |
| pi | |||
| ) | for(pliter=nprinvertstart,pl=nprinvertlist[pliter];pliter<=nprinvertend;pliter++,pl=nprinvertlist[pliter]) |
loop over all inversion Primitive variables – only over 5 quantities (not field)
Definition at line 66 of file global.loops.perpoint.h.
| #define PLOOP | ( | pliter, | |
| pl | |||
| ) | for(pliter=nprstart,pl=nprlist[pliter];pliter<=nprend;pliter++,pl=nprlist[pliter]) |
PLOOP controls looping over conserved or primitive -type quantities except during interpolation or other listed below.
Definition at line 50 of file global.loops.perpoint.h.
| #define PLOOPALLINTERP | ( | pl | ) | for(pl=0;pl<NPR2INTERP;pl++) |
always goes over all interpolatable primitives
Definition at line 119 of file global.loops.perpoint.h.
| #define PLOOPALLINVERT | ( | pl | ) | for(pl=0;pl<=B3;pl++) |
always goes over all standard invertable quantities for inversion to operate normally
Definition at line 116 of file global.loops.perpoint.h.
Definition at line 130 of file global.loops.perpoint.h.
| #define PLOOPNOB1 | ( | pl | ) | for(pl=0;pl<B1;pl++) |
Definition at line 129 of file global.loops.perpoint.h.
| #define PLOOPNOB2 | ( | pl | ) | for(pl=B3+1;pl<NPR;pl++) |
Definition at line 131 of file global.loops.perpoint.h.
| #define PLOOPNOB2SPECIAL | ( | pl, | |
| special | |||
| ) | for(pl=B3+1;pl<NPR+special;pl++) |
Definition at line 132 of file global.loops.perpoint.h.
| #define PLOOPRADONLY | ( | pl | ) | for(pl=PRAD0;pl<=PRAD3;pl++) |
Definition at line 135 of file global.loops.perpoint.h.
| #define PLOOPSPECIALONLY | ( | pl, | |
| special | |||
| ) | for(pl=NPR;pl<NPR+special;pl++) |
Definition at line 105 of file global.loops.perpoint.h.
| #define PMAXNPRLOOP | ( | pl | ) | for(pl=0;pl<MAXNPR;pl++) |
goes over all/any npr lists for copying one list to another
Definition at line 113 of file global.loops.perpoint.h.
| #define PNOTINTERPLOOP | ( | pliter, | |
| pl | |||
| ) | for(pliter=npr2notinterpstart,pl=npr2notinterplist[pliter];pliter<=npr2notinterpend;pliter++,pl=npr2notinterplist[pliter]) |
Definition at line 54 of file global.loops.perpoint.h.
| #define PRIMLOOP | ( | pliter, | |
| pl | |||
| ) | PLOOP(pliter,pl) |
Definition at line 52 of file global.loops.perpoint.h.
| #define ROMIOCOLLOOP | ( | romiocoliter | ) | for(romiocoliter=0;romiocoliter<romiocloopend;romiocoliter++) |
for USEMPI&&USEROMIO==1
Definition at line 213 of file global.loops.perpoint.h.
| #define SCLOOP | ( | sc | ) | for(sc=0;sc<NUMSOURCES;sc++) |
loop over ALL sources (including geometry)
Definition at line 197 of file global.loops.perpoint.h.
| #define SCPHYSICSLOOP | ( | sc | ) | for(sc=GEOMSOURCE+1;sc<NUMSOURCES;sc++) |
loop over all sources EXCEPT geometry (assumes GEOMSOURCE==0 or at least nothing before GEOMSOURCE matters)
Definition at line 200 of file global.loops.perpoint.h.
loop over all for k and Space for j; second rank loop
Definition at line 152 of file global.loops.perpoint.h.
loop over all Space dimensions; second rank loop
Definition at line 144 of file global.loops.perpoint.h.
loop over all Space dimensions; first rank loop
Definition at line 146 of file global.loops.perpoint.h.
space-space
Definition at line 150 of file global.loops.perpoint.h.
| #define TSCALELOOP | ( | tscale | ) | for(tscale=0;tscale<NUMTSCALES;tscale++) |
loop over debug time scales
Definition at line 193 of file global.loops.perpoint.h.
1.8.3.1