Added on/off switch for forcing and accretion. Now both set to take effect in 1000 steps.
This commit is contained in:
@@ -252,7 +252,11 @@ run_simulation(void)
|
|||||||
#if LSINK
|
#if LSINK
|
||||||
|
|
||||||
const AcReal sum_mass = acReduceScal(RTYPE_MAX, VTXBUF_ACCRETION);
|
const AcReal sum_mass = acReduceScal(RTYPE_MAX, VTXBUF_ACCRETION);
|
||||||
accreted_mass = accreted_mass + sum_mass;
|
if (i > 1000) {
|
||||||
|
accreted_mass = accreted_mass + sum_mass;
|
||||||
|
} else {
|
||||||
|
accreted_mass = 0.0;
|
||||||
|
}
|
||||||
AcReal sink_mass = 0.0;
|
AcReal sink_mass = 0.0;
|
||||||
//if (i > 1000 ) {
|
//if (i > 1000 ) {
|
||||||
sink_mass = mesh_info.real_params[AC_M_sink_init] + accreted_mass;
|
sink_mass = mesh_info.real_params[AC_M_sink_init] + accreted_mass;
|
||||||
@@ -265,7 +269,10 @@ run_simulation(void)
|
|||||||
|
|
||||||
#if LFORCING
|
#if LFORCING
|
||||||
const ForcingParams forcing_params = generateForcingParams(mesh_info);
|
const ForcingParams forcing_params = generateForcingParams(mesh_info);
|
||||||
loadForcingParamsToDevice(forcing_params);
|
if (i > 1000) {
|
||||||
|
loadForcingParamsToDevice(forcing_params);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user