Skip to content

Commit

Permalink
In estTimeStep, need to compute the max norm over the whole domain,
Browse files Browse the repository at this point in the history
not just local data
  • Loading branch information
cgilet committed May 16, 2024
1 parent d0a78c1 commit 5f4fec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/NavierStokesBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ NavierStokesBase::estTimeStep ()
//
// Find local max of velocity
//
u_max = S_new.norm0({AMREX_D_DECL(0,1,2)},0,true,true);
u_max = S_new.norm0({AMREX_D_DECL(0,1,2)},0,false,true);

//
// Compute forcing terms: in this case this means external forces and grad(p)
Expand Down Expand Up @@ -1426,7 +1426,7 @@ NavierStokesBase::estTimeStep ()
//
// Find local max of tforces
//
f_max = tforces.norm0({AMREX_D_DECL(0,1,2)},0,true,true);
f_max = tforces.norm0({AMREX_D_DECL(0,1,2)},0,false,true);

//
// Compute local estdt
Expand Down

0 comments on commit 5f4fec5

Please sign in to comment.