Skip to content

Commit

Permalink
Moved FatalError for 3D RANS
Browse files Browse the repository at this point in the history
  • Loading branch information
jewatkins committed Aug 23, 2014
1 parent 7058e70 commit ca7dae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/geometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1901,6 +1901,9 @@ void read_connectivity_gmsh(string& in_file_name, int &out_n_cells, array<int> &
if (FlowSol->n_dims != 2 && FlowSol->n_dims != 3) {
FatalError("Invalid mesh dimensionality. Expected 2D or 3D.");
}
if (run_input.turb_model==1 && FlowSol->n_dims == 3) {
FatalError("ERROR: 3D geometry not supported with RANS equation yet ... ");
}

// Move cursor to $Elements
while(1) {
Expand Down
6 changes: 0 additions & 6 deletions src/inters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,7 @@ void inters::setup_inters(int in_n_inters, int in_inters_type)
}

if (run_input.turb_model==1)
{
n_fields++;
if (n_dims==3)
{
FatalError("ERROR: 3D geometry not supported with RANS equation yet ... ");
}
}

disu_fpts_l.setup(n_fpts_per_inter,n_inters,n_fields);
norm_tconf_fpts_l.setup(n_fpts_per_inter,n_inters,n_fields);
Expand Down

0 comments on commit ca7dae8

Please sign in to comment.