!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! !! 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 !! !! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !$Id: util.F90,v 1.1.2.1 2007/09/11 13:01:47 smg Exp $ #include"cppdefs.h" !----------------------------------------------------------------------- !BOP ! ! !MODULE: util --- parameters and interfaces for utilities\label{sec:utils} ! ! !INTERFACE: MODULE util ! ! !DESCRIPTION: ! This module is an encapsulation of a number of parameters used by different ! routines found in the {\tt util} directory. It should make it easier to ! read the code, since finding a line like ! ! \vspace{7mm} ! ! {\tt if (method.eq.UPSTREAM) then ...} ! ! \vspace{7mm} ! ! in a subroutine for advection methods tells you more than reading only ! ! \vspace{7mm} ! ! {\tt if (method.eq.1) then ...} ! ! \vspace{7mm} ! ! !USES: IMPLICIT NONE ! ! !DEFINED PARAMETERS: ! type of advection scheme integer,parameter :: UPSTREAM = 1 integer,parameter :: P1 = 2 integer,parameter :: P2 = 3 integer,parameter :: Superbee = 4 integer,parameter :: MUSCL = 5 integer,parameter :: P2_PDM = 6 ! boundary condition type ! for diffusion scheme integer,parameter :: Dirichlet = 0 integer,parameter :: Neumann = 1 ! boundary condition type ! for advection schemes integer,parameter :: flux = 1 integer,parameter :: value = 2 integer,parameter :: oneSided = 3 integer,parameter :: zeroDivergence = 4 ! ! !REVISION HISTORY: ! Original author(s): Lars Umlauf ! ! $Log: util.F90,v $ ! Revision 1.1.2.1 2007/09/11 13:01:47 smg ! Add these files to the mom4p1 branch. ! AUTHOR:Griffies ! REVIEWERS: ! TEST STATUS: ! CHANGES PUBLIC INTERFACES? ! CHANGES ANSWERS? ! ! Revision 1.1 2005-06-27 10:54:33 kbk ! new files needed ! ! !EOP end module util !----------------------------------------------------------------------- ! Copyright by the GOTM-team under the GNU Public License - www.gnu.org !-----------------------------------------------------------------------