MCPcopy Create free account
hub / github.com/AMReX-Astro/Castro / set_y_vel_bc

Function set_y_vel_bc

Source/driver/Castro_setup.cpp:103–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 void
104 set_y_vel_bc(BCRec& bc, const BCRec& phys_bc)
105 {
106 const int* lo_bc = phys_bc.lo();
107 const int* hi_bc = phys_bc.hi();
108 bc.setLo(0,tang_vel_bc[lo_bc[0]]);
109 bc.setHi(0,tang_vel_bc[hi_bc[0]]);
110#if (AMREX_SPACEDIM >= 2)
111 bc.setLo(1,norm_vel_bc[lo_bc[1]]);
112 bc.setHi(1,norm_vel_bc[hi_bc[1]]);
113#endif
114#if (AMREX_SPACEDIM == 3)
115 bc.setLo(2,tang_vel_bc[lo_bc[2]]);
116 bc.setHi(2,tang_vel_bc[hi_bc[2]]);
117#endif
118 }
119
120 void
121 set_z_vel_bc(BCRec& bc, const BCRec& phys_bc)

Callers 1

variableSetUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected