Oasis3 4.0.2
constants.f
Go to the documentation of this file.
00001 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00002 !
00003 !     This module defines common constants used in many routines.
00004 !
00005 !-----------------------------------------------------------------------
00006 !
00007 !     CVS:$Id: constants.f 818 2006-03-10 17:18:31Z valcke $
00008 !
00009 !     Copyright (c) 1997, 1998 the Regents of the University of 
00010 !       California.
00011 !
00012 !     This software and ancillary information (herein called software) 
00013 !     called SCRIP is made available under the terms described here.  
00014 !     The software has been approved for release with associated 
00015 !     LA-CC Number 98-45.
00016 !
00017 !     Unless otherwise indicated, this software has been authored
00018 !     by an employee or employees of the University of California,
00019 !     operator of the Los Alamos National Laboratory under Contract
00020 !     No. W-7405-ENG-36 with the U.S. Department of Energy.  The U.S.
00021 !     Government has rights to use, reproduce, and distribute this
00022 !     software.  The public may copy and use this software without
00023 !     charge, provided that this Notice and any statement of authorship
00024 !     are reproduced on all copies.  Neither the Government nor the
00025 !     University makes any warranty, express or implied, or assumes
00026 !     any liability or responsibility for the use of this software.
00027 !
00028 !     If software is modified to produce derivative works, such modified
00029 !     software should be clearly marked, so as not to confuse it with 
00030 !     the version available from Los Alamos National Laboratory.
00031 !
00032 !***********************************************************************
00033 
00034       module constants
00035 
00036 !-----------------------------------------------------------------------
00037 
00038       use kinds_mod  ! defines common data types
00039 
00040       implicit none
00041 
00042       save
00043 
00044 !-----------------------------------------------------------------------
00045 
00046       real (kind = dbl_kind), parameter :: 
00047      &                        zero   = 0.0_dbl_kind,
00048      &                        one    = 1.0_dbl_kind,
00049      &                        two    = 2.0_dbl_kind,
00050      &                        three  = 3.0_dbl_kind,
00051      &                        four   = 4.0_dbl_kind,
00052      &                        five   = 5.0_dbl_kind,
00053      &                        half   = 0.5_dbl_kind,
00054      &                        quart  = 0.25_dbl_kind,
00055      &                        bignum = 1.e+20_dbl_kind,
00056      &                        tiny   = 1.e-14_dbl_kind,
00057      &                        pi     = 3.14159265358979323846_dbl_kind,
00058      &                        pi2    = two*pi,
00059      &                        pih    = half*pi
00060 
00061 !-----------------------------------------------------------------------
00062 
00063       end module constants
00064 
00065 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 All Data Structures Namespaces Files Functions Variables Defines