!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! !! GNU General Public License !! !! !! !! This file is part of the Flexible Modeling System (FMS). !! !! !! !! FMS is free software; you can redistribute it and/or modify !! !! it and are expected to follow the terms of the GNU General Public !! !! License as published by the Free Software Foundation. !! !! !! !! FMS is distributed in the hope that it will be useful, !! !! but WITHOUT ANY WARRANTY; without even the implied warranty of !! !! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the !! !! GNU General Public License for more details. !! !! !! !! You should have received a copy of the GNU General Public License !! !! along with FMS; if not, write to: !! !! Free Software Foundation, Inc. !! !! 59 Temple Place, Suite 330 !! !! Boston, MA 02111-1307 USA !! !! or see: !! !! http://www.gnu.org/licenses/gpl.txt !! !! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module mpp_data_mod #include #if defined(use_libMPI) && defined(sgi_mipspro) use mpi #endif use mpp_parameter_mod, only : MAXPES implicit none private character(len=128), public :: version= & '$Id mpp_data.F90 $' character(len=128), public :: tagname= & '$Name: mom4p1_pubrel_dec2009_nnz $' #if defined(use_libSMA) || defined(use_MPI_SMA) #include #endif #if defined(use_libMPI) && !defined(sgi_mipspro) #include !sgi_mipspro gets this from 'use mpi' #endif !--- public data is used by mpp_mod public :: stat, mpp_stack, ptr_stack, status, ptr_status, sync, ptr_sync public :: mpp_from_pe, ptr_from, remote_data_loc, ptr_remote !--- public data which is used by mpp_domains_mod. !--- All othere modules should import these parameters from mpp_domains_mod. public :: mpp_domains_stack, ptr_domains_stack !-------------------------------------------------------------------------------! ! The following data included in the .inc file are diffrent for sma or mpi case ! !-------------------------------------------------------------------------------! #ifdef use_libSMA #include #else #ifdef use_libMPI #include #else #include #endif #endif end module mpp_data_mod