From 441ba865e72fb3347613759d22af14ec39ac97d1 Mon Sep 17 00:00:00 2001 From: Alberto Otero de la Roza Date: Fri, 13 Dec 2024 12:36:13 +0100 Subject: [PATCH] in grid%setmode call, verify only that the grid is allocated --- VERSION | 2 +- src/fieldmod@proc.f90 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a3433ac5..c24c708c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.357 +1.2.358 diff --git a/src/fieldmod@proc.f90 b/src/fieldmod@proc.f90 index f48167b9..0b2645e0 100644 --- a/src/fieldmod@proc.f90 +++ b/src/fieldmod@proc.f90 @@ -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