Skip to content

Commit

Permalink
in grid%setmode call, verify only that the grid is allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
aoterodelaroza committed Dec 13, 2024
1 parent 972208c commit 441ba86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.357
1.2.358
2 changes: 1 addition & 1 deletion src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module subroutine field_set_options(ff,line,errmsg)
if (equal(word,'tricubic') .or. equal(word,'trispline') .or. &
equal(word,'trilinear') .or. equal(word,'nearest') .or. &
equal(word,'smoothrho')) then
if (.not.ff%type == type_grid.or..not.allocated(ff%grid)) then
if (.not.allocated(ff%grid)) then
errmsg = "tricubic/... incompatible with fields other than grids"
return
end if
Expand Down

0 comments on commit 441ba86

Please sign in to comment.