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
  • Loading branch information
Mahesh Natarajan committed Nov 26, 2024
1 parent 99c1e43 commit be5b53c
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 be5b53c

Please sign in to comment.