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