source: trunk/LMDZ.PLUTO/libf/muphypluto/lint_prec.F90 @ 3590

Last change on this file since 3590 was 3560, checked in by debatzbr, 5 weeks ago

Addition of the microphysics model in moments.

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