subphase enabled in basic

This commit is contained in:
James E McClure 2019-03-27 07:10:43 -04:00
parent 21591f3589
commit 19492ec4b4
2 changed files with 3 additions and 3 deletions

View File

@ -205,11 +205,11 @@ void SubPhase::Basic(){
wb.Pz += rho_w*nB*Vel_z(n);
}
if ( phi > 0.99 ){
nb.P += Pressure(n);
nb.p += Pressure(n);
count_n += 1.0;
}
else if ( phi < -0.99 ){
wb.P += Pressure(n);
wb.p += Pressure(n);
count_w += 1.0;
}
}

View File

@ -934,7 +934,7 @@ void runAnalysis::basic( int timestep, SubPhase &Averages, const double *Phi, do
}
if ( timestep%d_subphase_analysis_interval == 0 ) {
auto work = new BasicWorkItem(type,timestep,Averages);
auto work = new SubphaseWorkItem(type,timestep,Averages);
work->add_dependency(d_wait_subphase); // Make sure we are done using analysis before modifying
d_wait_subphase = d_tpool.add_work(work);
}