Skip to content

Commit a458251

Browse files
maxaehlesuargi
andcommitted
Update FinestMesh when nMGLevels is changed
Co-authored-by: Guillermo Suarez <[email protected]>
1 parent c06e65e commit a458251

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Common/include/CConfig.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,12 @@ class CConfig {
26112611
* \brief Set the number of multigrid levels.
26122612
* \param[in] val_nMGLevels - Index of the mesh were the CFL is applied
26132613
*/
2614-
void SetMGLevels(unsigned short val_nMGLevels) { nMGLevels = val_nMGLevels; }
2614+
void SetMGLevels(unsigned short val_nMGLevels) {
2615+
nMGLevels = val_nMGLevels;
2616+
if( MGCycle == FULLMG_CYCLE ){
2617+
SetFinestMesh(val_nMGLevels);
2618+
}
2619+
}
26152620

26162621
/*!
26172622
* \brief Get the index of the finest grid.

0 commit comments

Comments
 (0)