source: trunk/LMDZ.TITAN/libf/muphytitan/mm_mprec.F90 @ 1897

Last change on this file since 1897 was 1897, checked in by jvatant, 7 years ago

Making Titan's hazy again - part II
+ Major updates of J.Burgalat YAMMS library and optical coupling, including :
++ Added the routines for haze optics inside YAMMS
++ Calling rad. transf. with interactive haze is plugged
in but should stay unactive as long as the microphysics is
in test phase : cf "uncoupl_optic_haze" flag : true for now !
++ Also some sanity checks for negative tendencies and
some others upkeep of YAMMS model
+ Also added a temporary CPP key USE_QTEST in physiq_mod
that enables to have microphysical tendencies separated
from dynamics for debugging and test phases
-- JVO and JB

File size: 2.8 KB
Line 
1! Copyright 2013-2015,2017 Université de Reims Champagne-Ardenne
2! Contributor: J. Burgalat (GSMA, URCA)
3! email of the author : jeremie.burgalat@univ-reims.fr
4!
5! This software is a computer program whose purpose is to compute
6! microphysics processes using a two-moments scheme.
7!
8! This library is governed by the CeCILL-B license under French law and
9! abiding by the rules of distribution of free software.  You can  use,
10! modify and/ or redistribute the software under the terms of the CeCILL-B
11! license as circulated by CEA, CNRS and INRIA at the following URL
12! "http://www.cecill.info".
13!
14! As a counterpart to the access to the source code and  rights to copy,
15! modify and redistribute granted by the license, users are provided only
16! with a limited warranty  and the software's author,  the holder of the
17! economic rights,  and the successive licensors  have only  limited
18! liability.
19!
20! In this respect, the user's attention is drawn to the risks associated
21! with loading,  using,  modifying and/or developing or reproducing the
22! software by the user in light of its specific status of free software,
23! that may mean  that it is complicated to manipulate,  and  that  also
24! therefore means  that it is reserved for developers  and  experienced
25! professionals having in-depth computer knowledge. Users are therefore
26! encouraged to load and test the software's suitability as regards their
27! requirements in conditions enabling the security of their systems and/or
28! data to be ensured and,  more generally, to use and operate it in the
29! same conditions as regards security.
30!
31! The fact that you are presently reading this means that you have had
32! knowledge of the CeCILL-B license and that you accept its terms.
33
34!! file: mm_mprec.F90
35!! summary: Library floating point precision module.
36!! author: J. Burgalat
37!! date: 2013-2015,2017
38
39#ifdef HAVE_CONFIG_H
40#include "config.h"
41#endif
42
43#ifndef PREC
44#define PREC 64
45#elif (PREC != 32 && PREC != 64 && PREC != 80)
46#undef PREC
47#define PREC 64
48#endif
49
50MODULE MM_MPREC
51  !! Library floating point computations precision module.
52  !!
53  !! This module only defines a single variable [[mm_mprec(module):mm_wp(variable)]] which sets
54  !! the kind of floating point value used in all other part of the library (REAL(kind=mm_wp)
55  !! declaration statement).
56  IMPLICIT NONE
57
58#if (PREC == 32)
59  !> Size of floating point variables in the library (single).
60  INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=6)  ! 32 bits
61#elif (PREC == 64)
62  !> Size of floating point variables in the library (double).
63  INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=15) ! 64 bits
64#elif (PREC == 80)
65  !> Size of floating point variables in the library (extended-double).
66  INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=18) ! 80 bits
67#endif
68END MODULE MM_MPREC
69
Note: See TracBrowser for help on using the repository browser.