Skip to content

Commit

Permalink
read_grip_shape grid types
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jan 24, 2025
1 parent ba0fd61 commit 11edbe3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Utilities/GridFileReader.f90
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,16 @@ function read_grid_shape(this) result(v)
case ("DISU")
allocate (v(1))
v(1) = this%read_int("NODES")
case ("DIS2D")
allocate (v(2))
v(1) = this%read_int("NROW")
v(2) = this%read_int("NCOL")
case ("DISV2D")
allocate (v(1))
v(1) = this%read_int("NODES")
case ("DISV1D")
allocate (v(1))
v(1) = this%read_int("NCELLS")
end select
end function read_grid_shape

Expand Down

0 comments on commit 11edbe3

Please sign in to comment.