11 int report_bound_loop(
void)
22 int numbnd[
NDIM],numnpr;
26 for(boundvartype=0;boundvartype<
NUMBOUNDTYPES;boundvartype++){
28 trifprintf(
"boundvartype=%d\n",boundvartype);
31 set_numbnd(boundvartype, numbnd, &numnpr);
33 trifprintf(
"numnpr=%d\n",numnpr);
35 trifprintf(
"numbnd[%d]=%d\n",dimen,numbnd[dimen]);
38 set_boundloop(boundvartype, inboundloop, outboundloop, innormalloop, outnormalloop, inoutlohi, &riin, &riout, &rjin, &rjout, &rkin, &rkout, dosetbc);
41 trifprintf(
"Note inout/lowhigh iter has POINTDOWN=%d and POINTUP=%d\n",
POINTDOWN,
POINTUP);
45 trifprintf(
"inoutlohi[inoutboundary=%d][lowhighrange=%d][dimen=%d]=%d\n",ii,jj,dimen,inoutlohi[ii][jj][dimen]);
48 trifprintf(
"inboundloop[dimen=%d]=%d outboundloop[dimen=%d]=%d\n",dimen,inboundloop[dimen],dimen,outboundloop[dimen]);
49 if(dimen==1) trifprintf(
"riin=%d riout=%d\n",riin,riout);
50 else if(dimen==2) trifprintf(
"rjin=%d rjout=%d\n",rjin,rjout);
51 else if(dimen==3) trifprintf(
"rkin=%d rkout=%d\n",rkin,rkout);
54 trifprintf(
"dosetbc[dir=%d]=%d\n",dir,dosetbc[dir]);
71 void set_numbnd(
int boundvartype,
int *numbnd,
int *numnpr)
100 *numnpr = NFLUXBOUND;
107 *numnpr = NFLUXBOUND;
123 dualfprintf(
fail_file,
"set_numbnd(): No such boundvartype=%d\n",boundvartype);
150 void set_boundloop(
int boundvartype,
int *inboundloop,
int*outboundloop,
int*innormalloop,
int*outnormalloop,
int (*inoutlohi)[
NUMUPDOWN][
NDIM],
int *riin,
int *riout,
int *rjin,
int *rjout,
int *rkin,
int *rkout,
int *dosetbc)
157 int numbnd[
NDIM],numnpr;
168 set_numbnd(boundvartype, numbnd, &numnpr);
188 ||
BCtype[dir]==HORIZONOUTFLOW
189 ||
BCtype[dir]==FIXEDOUTFLOW
190 ||
BCtype[dir]==OUTFLOWNOINFLOW
191 ||
BCtype[dir]==RAMESHOUTFLOW
192 ||
BCtype[dir]==RESCALEOUTFLOW
193 ||
BCtype[dir]==FREEOUTFLOW
197 else outflowtype[dir]=0;
392 inoutlohi[ii][jj][dimen] += shifts[ii][dimen];
404 if(inoutlohi[point][
POINTDOWN][dimen]<-numbnd[dimen] || inoutlohi[point][
POINTUP][2]<0){
409 if(inoutlohi[point][
POINTDOWN][dimen]>Nx[dimen]-1 || inoutlohi[point][
POINTUP][2]>Nx[dimen]-1+numbnd[dimen]){
454 else inboundloop[1]=0;
456 else outboundloop[1]=
N1-1;
459 else inboundloop[2]=0;
461 else outboundloop[2]=
N2-1;
464 else inboundloop[3]=0;
466 else outboundloop[3]=
N3-1;
479 outnormalloop[1]=
N1-1+shifts[
POINTUP][1];
482 outnormalloop[2]=
N2-1+shifts[
POINTUP][2];
485 outnormalloop[3]=
N3-1+shifts[
POINTUP][3];
491 outnormalloop[1]=
N1-1+SHIFT1+shifts[
POINTUP][1];
494 outnormalloop[2]=
N2-1+SHIFT2+shifts[
POINTUP][2];
497 outnormalloop[3]=
N3-1+SHIFT3+shifts[
POINTUP][3];
504 outnormalloop[1]=
N1-1+shifts[
POINTUP][1];
507 outnormalloop[2]=
N2-1+shifts[
POINTUP][2];
510 outnormalloop[3]=
N3-1+shifts[
POINTUP][3];
517 outnormalloop[1]=
N1-1+shifts[
POINTUP][1];
520 outnormalloop[2]=
N2-1+shifts[
POINTUP][2];
523 outnormalloop[3]=
N3-1+shifts[
POINTUP][3];