From cdfb989473e1a0b379e171bc6242f4e742c4d563 Mon Sep 17 00:00:00 2001 From: Aaron Donahue Date: Wed, 12 Apr 2017 16:33:40 -0700 Subject: [PATCH] Fixed bug where seg fault occurs when dyn_npes < npes Fixed a bug which resulted in a segmentation fault for simulations with fewer dynamics processors (dyn_npes) than total processors (npes). * Fix skips a call to createmetadata subroutine which is associated with a certain type of mapping file in ESMF for processors not doing dynamics. * Slightly related fix to gravity_wave_sources code which called boundary exchange for processors not neccesarily associated with dynamics. [BFB] - Bit-For-Bit --- components/cam/src/dynamics/se/dyn_comp.F90 | 6 +++++- components/cam/src/dynamics/se/gravity_waves_sources.F90 | 9 ++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/components/cam/src/dynamics/se/dyn_comp.F90 b/components/cam/src/dynamics/se/dyn_comp.F90 index 9bd95fe3291a..ccbc9ccae79e 100644 --- a/components/cam/src/dynamics/se/dyn_comp.F90 +++ b/components/cam/src/dynamics/se/dyn_comp.F90 @@ -50,6 +50,8 @@ Module dyn_comp ! !REVISION HISTORY: ! ! JPE 06.05.31: created + ! Aaron Donahue 17.04.11: Fixed bug in write_grid_mapping which caused + ! a segmentation fault when dyn_npes