Skip to content

Commit 07de57d

Browse files
authored
Merge pull request #12 from GEOS-ESM/feature/mathomp4/Jason-UNSTABLE-2019Jul26
Update to MAPL_TilingRegridder.F90
2 parents ce5fcef + 4c7d7ba commit 07de57d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MAPL_Base/MAPL_TilingRegridder.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ subroutine find_tile_file(this, file_name, swap, unusable, rc)
427427

428428
! Next we search for a tempest ".nc4" file
429429
trial_name = make_tile_file_name(grid_name_in, grid_name_out,'.nc4')
430+
inquire(file=trial_name, exist=exists)
430431
if (exists) then
431432
swap = .false.
432433
else ! swap
@@ -440,9 +441,10 @@ subroutine find_tile_file(this, file_name, swap, unusable, rc)
440441
if (exists) then
441442
file_name = trial_name
442443
this%file_type = TEMPEST
444+
_RETURN(_SUCCESS)
443445
end if
444446

445-
_RETURN(_SUCCESS)
447+
_RETURN(_FAILURE)
446448

447449

448450
contains

0 commit comments

Comments
 (0)