AdamsMoulton4

This commit is contained in:
hamidrezanorouzi
2022-10-27 21:37:34 +03:30
parent cedfcfea10
commit 86bfc07db9
5 changed files with 383 additions and 3 deletions

View File

@ -113,7 +113,7 @@ bool pFlow::AdamsMoulton3::setInitialVals(
const realx3Vector& y)
{
y0_.insertSetElement(newIndices, y);
//output<< "y0_ "<< y0_<<endl<<endl;
return true;
}

View File

@ -163,9 +163,9 @@ bool pFlow::AdamsMoulton3::intRange(
static_cast<real>(5.0/12.0)*d_dy[i]
+ static_cast<real>(8.0/12.0)*d_dy0[i]
- static_cast<real>(1.0/12.0)*d_dy1[i]);
d_y[i] = corrct_y;
d_y0[i] = corrct_y;
d_dy1[i]= d_dy0[i];
d_y0[i] = corrct_y;
d_y[i] = corrct_y;
}
});
Kokkos::fence();