|
20 | 20 | #include "ProblemSpecificFunctions.H"
|
21 | 21 | #include "Tagging.H"
|
22 | 22 | #include "Transport.H"
|
23 |
| -#include "Utilities.H" |
| 23 | +#include "PeleCUtilities.H" |
24 | 24 | #include "prob_parm.H"
|
25 | 25 | #include "Geometry.H"
|
26 | 26 |
|
@@ -70,17 +70,19 @@ InterpolateVelInflow(
|
70 | 70 | amrex::Real radSI = radius * 0.01;
|
71 | 71 | // Get radius location for interpolation
|
72 | 72 | int idR = 0;
|
73 |
| - locate(prob_parm.d_rM, prob_parm.nr, radSI, idR); |
| 73 | + pele::physics::utilities::locate(prob_parm.d_rM, prob_parm.nr, radSI, idR); |
74 | 74 | int idRp1 = idR + 1;
|
75 | 75 |
|
76 | 76 | theta = std::fmod(theta, prob_parm.thetaMax);
|
77 | 77 | int idT = 0;
|
78 |
| - locate(prob_parm.d_thetaM, prob_parm.nt, theta, idT); |
| 78 | + pele::physics::utilities::locate( |
| 79 | + prob_parm.d_thetaM, prob_parm.nt, theta, idT); |
79 | 80 | const int idTp1 = idT + 1;
|
80 | 81 |
|
81 | 82 | amrex::Real timeInflow = std::fmod(timeInp, prob_parm.timeInflowMax);
|
82 | 83 | int indxTime = 0;
|
83 |
| - locate(prob_parm.d_timeInput, prob_parm.inflowNtime, timeInflow, indxTime); |
| 84 | + pele::physics::utilities::locate( |
| 85 | + prob_parm.d_timeInput, prob_parm.inflowNtime, timeInflow, indxTime); |
84 | 86 | const int indxTimeP1 = indxTime + 1;
|
85 | 87 |
|
86 | 88 | // Interpolate in space
|
@@ -250,7 +252,8 @@ pc_initdata(
|
250 | 252 | amrex::Real slp[3] = {0.0};
|
251 | 253 | for (int cnt = 0; cnt < 3; cnt++) {
|
252 | 254 | mod[cnt] = std::fmod(x[cnt], prob_parm.Linput);
|
253 |
| - locate(prob_parm.d_xarray, prob_parm.inres, mod[cnt], idx[cnt]); |
| 255 | + pele::physics::utilities::locate( |
| 256 | + prob_parm.d_xarray, prob_parm.inres, mod[cnt], idx[cnt]); |
254 | 257 | idxp1[cnt] = (idx[cnt] + 1) % prob_parm.inres;
|
255 | 258 | slp[cnt] =
|
256 | 259 | (mod[cnt] - prob_parm.d_xarray[idx[cnt]]) / prob_parm.d_xdiff[idx[cnt]];
|
|
0 commit comments