Skip to content

Commit

Permalink
Making terrain as static if zlevels are used and terrain is not set i…
Browse files Browse the repository at this point in the history
…n the inputs (erf-model#1985)

Co-authored-by: Mahesh Natarajan <[email protected]>
  • Loading branch information
nataraj2 and Mahesh Natarajan authored Nov 27, 2024
1 parent 99c1e43 commit df4b7ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/DataStructs/ERF_DataStruct.H
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ struct SolverChoice {

// Is the terrain none, static or moving?
pp.query_enum_case_insensitive("terrain_type",terrain_type);
int n_zlevels = pp.countval("terrain_z_levels");
if (n_zlevels > 0 and terrain_type == TerrainType::None)
{
terrain_type = TerrainType::Static;
}

// Use lagged_delta_rt in the fast integrator?
pp.query("use_lagged_delta_rt", use_lagged_delta_rt);
Expand Down

0 comments on commit df4b7ce

Please sign in to comment.