Skip to content

Commit

Permalink
Update Setup.c
Browse files Browse the repository at this point in the history
  • Loading branch information
tduretz authored Feb 21, 2024
1 parent 728da6a commit c9778c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MDLIB/Setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,10 @@ void SetBCs(SetBCs_ff setBCs, MdoodzInput *instance, grid *mesh, surface *topo)
}

// override by integrated velocity values
instance->topo_height->west = VxWestSum*mesh->dz;
instance->topo_height->east = VxEastSum*mesh->dz;
if (instance->topo_height != NULL) {
instance->topo_height->west = VxWestSum*mesh->dz;
instance->topo_height->east = VxEastSum*mesh->dz;
}

/* --------------------------------------------------------------------------------------------------------*/
/* Set the BCs for Vz on all grid levels */
Expand Down Expand Up @@ -1002,4 +1004,4 @@ bool IsRectangleCoordinates(Coordinates coordinates, Rectangle rectangle, double

/*--------------------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------ M-Doodz -----------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------------------------------------------------*/

0 comments on commit c9778c1

Please sign in to comment.