You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Level ghost particles contributing to the moments have two origins:
those refined from the next coarser at its former time step : LevelGhostParticlesOld
those refined from the next coarser at its current time step : LevelGhostParticlesNew
when calculating the moments on a given level at an arbitrary time, let alpha be the ratio of the current time since the last level synchronisation time (next coarser former time step) and the total duration of the next coarser time step, then the contribution of the level ghost particles is :
This means that for now, alpha is hard-coded to be 0.5.
Objective
This issue aims at getting alpha defined correctly, i.e. to be the current time elapsed since last sync point. divided by the total duration of the next coarser time step.
hint:
this is done in hybrid_hybrid_messenger_strategy.h
Context
Level ghost particles contributing to the moments have two origins:
when calculating the moments on a given level at an arbitrary time, let alpha be the ratio of the current time since the last level synchronisation time (next coarser former time step) and the total duration of the next coarser time step, then the contribution of the level ghost particles is :
alpha * levelGhostParticlesNew + (1-alpha) * levelGhostParticlesOld.
alpha being 0 before the first time step of the sub cycle, and 1 at the end of the sub cycle
In ion_updater.h we have :
This means that for now, alpha is hard-coded to be 0.5.
Objective
This issue aims at getting alpha defined correctly, i.e. to be the current time elapsed since last sync point. divided by the total duration of the next coarser time step.
hint:
this is done in hybrid_hybrid_messenger_strategy.h
and used in the same file:
The text was updated successfully, but these errors were encountered: