Commit a4466eda authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed elseif branch.

parent 86fbe6b7
......@@ -685,7 +685,7 @@ void remap_grids_init(RemapType mapType, bool lextrapolate, int gridID1, remapgr
{
if ( src_grid->remap_grid_type != REMAP_GRID_TYPE_REG2D )
{
src_grid->luse_cell_corners = true;
src_grid->luse_cell_corners = true;
src_grid->lneed_cell_corners = true;
}
......@@ -738,18 +738,10 @@ void remap_grids_init(RemapType mapType, bool lextrapolate, int gridID1, remapgr
remap_define_grid(mapType, gridID1, src_grid, "Source");
remap_define_grid(mapType, gridID2, tgt_grid, "Target");
if ( src_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D && tgt_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D )
if ( src_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D || tgt_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D )
{
remap_define_reg2d(reg2d_src_gridID, src_grid);
remap_define_reg2d(reg2d_tgt_gridID, tgt_grid);
}
else if ( src_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D )
{
remap_define_reg2d(reg2d_src_gridID, src_grid);
}
else if ( tgt_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D )
{
remap_define_reg2d(reg2d_tgt_gridID, tgt_grid);
if ( src_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D ) remap_define_reg2d(reg2d_src_gridID, src_grid);
if ( tgt_grid->remap_grid_type == REMAP_GRID_TYPE_REG2D ) remap_define_reg2d(reg2d_tgt_gridID, tgt_grid);
}
else if ( mapType != RemapType::DISTWGT
// && mapType != RemapType::BILINEAR
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment