Changeset 3083 for trunk/LMDZ.TITAN/libf/muphytitan/mm_mprec.F90
- Timestamp:
- Oct 12, 2023, 10:30:22 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/muphytitan/mm_mprec.F90
r1897 r3083 1 ! Copyright 2013-2015,2017 Université de Reims Champagne-Ardenne1 ! Copyright 2013-2015,2017,2022 Université de Reims Champagne-Ardenne 2 2 ! Contributor: J. Burgalat (GSMA, URCA) 3 3 ! email of the author : jeremie.burgalat@univ-reims.fr 4 ! 4 ! 5 5 ! This software is a computer program whose purpose is to compute 6 6 ! microphysics processes using a two-moments scheme. 7 ! 7 ! 8 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, 9 ! abiding by the rules of distribution of free software. You can use, 10 10 ! modify and/ or redistribute the software under the terms of the CeCILL-B 11 11 ! license as circulated by CEA, CNRS and INRIA at the following URL 12 ! "http://www.cecill.info". 13 ! 12 ! "http://www.cecill.info". 13 ! 14 14 ! As a counterpart to the access to the source code and rights to copy, 15 15 ! modify and redistribute granted by the license, users are provided only 16 16 ! with a limited warranty and the software's author, the holder of the 17 17 ! economic rights, and the successive licensors have only limited 18 ! liability. 19 ! 18 ! liability. 19 ! 20 20 ! In this respect, the user's attention is drawn to the risks associated 21 21 ! with loading, using, modifying and/or developing or reproducing the … … 25 25 ! professionals having in-depth computer knowledge. Users are therefore 26 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 ! 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 31 ! The fact that you are presently reading this means that you have had 32 32 ! knowledge of the CeCILL-B license and that you accept its terms. … … 35 35 !! summary: Library floating point precision module. 36 36 !! author: J. Burgalat 37 !! date: 2013-2015,2017 37 !! date: 2013-2015,2017,2022 38 38 39 39 #ifdef HAVE_CONFIG_H … … 42 42 43 43 #ifndef PREC 44 #define PREC 64 44 #define PREC 64 45 45 #elif (PREC != 32 && PREC != 64 && PREC != 80) 46 46 #undef PREC … … 52 52 !! 53 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) 54 !! the kind of floating point value used in all other part of the library (REAL(kind=mm_wp) 55 55 !! declaration statement). 56 56 IMPLICIT NONE … … 58 58 #if (PREC == 32) 59 59 !> Size of floating point variables in the library (single). 60 INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=6) ! 32 bits 60 INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=6) ! 32 bits 61 CHARACTER(len=è), PUBLIC, PARAMETER :: mm_wp_s = "32 bits" 61 62 #elif (PREC == 64) 62 63 !> Size of floating point variables in the library (double). 63 INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=15) ! 64 bits 64 INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=15) ! 64 bits 65 CHARACTER(len=7), PUBLIC, PARAMETER :: mm_wp_s = "64 bits" 64 66 #elif (PREC == 80) 65 67 !> Size of floating point variables in the library (extended-double). 66 INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=18) ! 80 bits 68 INTEGER, PUBLIC, PARAMETER :: mm_wp = SELECTED_REAL_KIND(p=18) ! 80 bits 69 CHARACTER(len=7), PUBLIC, PARAMETER :: mm_wp_s = "80 bits" 67 70 #endif 68 71 END MODULE MM_MPREC
Note: See TracChangeset
for help on using the changeset viewer.