forked from NOAA-EMC/WW3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a module mpicomm to store MPI_COMM_WW3
- Loading branch information
1 parent
14e6bed
commit 1ef96e9
Showing
17 changed files
with
239 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
!> @file | ||
!> @brief Defines MPI communicator id as constants for global use. | ||
!> | ||
!> @author H. L. Tolman @date 05-Jun-2018 | ||
!> | ||
#include "w3macros.h" | ||
|
||
!> | ||
!> @brief Define some mpi constants for global use | ||
!> | ||
!> @author H. L. Tolman @date 05-Jun-2018 | ||
!> | ||
! | ||
#ifndef ENDIANNESS | ||
#define ENDIANNESS "native" | ||
#endif | ||
! | ||
!/ ------------------------------------------------------------------- / | ||
MODULE MPICOMM | ||
!/ | ||
!/ +-----------------------------------+ | ||
!/ | WAVEWATCH III NOAA/NCEP | | ||
!/ | H. L. Tolman | | ||
!/ | FORTRAN 90 | | ||
!/ | Last update : 05-Jun-2018 | | ||
!/ +-----------------------------------+ | ||
!/ | ||
!/ 11-Nov-1999 : Fortran 90 version. ( version 2.00 ) | ||
!/ 29-May-2009 : Preparing distribution version. ( version 3.14 ) | ||
!/ 25-Jun-2011 : Adding Kelvin functions. ( version 4.05 ) | ||
!/ 03-Sep-2012 : Adding TSTOUT flag. ( version 4.10 ) | ||
!/ 28-Feb-2013 : Adding cap at 0.5 in FWTABLE ( version 4.08 ) | ||
!/ 20-Jan-2017 : Add parameters for ESMF ( version 6.02 ) | ||
!/ 01-Mar-2018 : Add UNDEF parameter ( version 6.02 ) | ||
!/ 05-Jun-2018 : Add PDLIB parameters ( version 6.04 ) | ||
!/ | ||
!/ Copyright 2009-2012 National Weather Service (NWS), | ||
!/ National Oceanic and Atmospheric Administration. All rights | ||
!/ reserved. WAVEWATCH III is a trademark of the NWS. | ||
!/ No unauthorized use without permission. | ||
!/ | ||
! 1. Purpose : | ||
! | ||
! Define some mpi constants for global use | ||
! | ||
! 2. Variables and types : | ||
! | ||
! Name Type Scope Description | ||
! ---------------------------------------------------------------- | ||
! UNDEF Real Global Value for undefined variable in output | ||
! ---------------------------------------------------------------- | ||
!/ ------------------------------------------------------------------- / | ||
!/ | ||
! | ||
!#ifdef W3_MPI | ||
! INCLUDE "mpif.h" | ||
!#endif | ||
|
||
INTEGER :: MPI_COMM_WW3=0 !< MPI_COMM_WW3 | ||
! | ||
! Parameters in support of running as ESMF component | ||
! | ||
! --- Flag indicating whether or not the model has been invoked as an | ||
! external Component. This flag is set to true in the external | ||
! module during initialization. | ||
LOGICAL :: IS_EXTERNAL_COMPONENT = .FALSE. !< IS_EXTERNAL_COMPONENT Flag for model invoked via external executable. | ||
! | ||
CONTAINS | ||
|
||
!/ | ||
!/ End of module MPICOMM ------------------------------------------- / | ||
!/ | ||
END MODULE MPICOMM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.