2012-02-22 19:36:28 +05:30
|
|
|
|
! Copyright 2011,2012 Max-Planck-Institut f<>r Eisenforschung GmbH
|
|
|
|
|
!
|
|
|
|
|
! This file is part of DAMASK,
|
|
|
|
|
! the D<>sseldorf Advanced MAterial Simulation Kit.
|
|
|
|
|
!
|
|
|
|
|
! DAMASK is free software: you can redistribute it and/or modify
|
|
|
|
|
! it under the terms of the GNU General Public License as published by
|
|
|
|
|
! the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
! (at your option) any later version.
|
|
|
|
|
!
|
|
|
|
|
! DAMASK is distributed in the hope that it will be useful,
|
|
|
|
|
! but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
! GNU General Public License for more details.
|
|
|
|
|
!
|
|
|
|
|
! You should have received a copy of the GNU General Public License
|
|
|
|
|
! along with DAMASK. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
!
|
2011-12-01 17:31:13 +05:30
|
|
|
|
!##############################################################
|
2011-12-22 16:06:59 +05:30
|
|
|
|
!* $Id$
|
2011-12-01 17:31:13 +05:30
|
|
|
|
!##############################################################
|
|
|
|
|
|
|
|
|
|
MODULE prec
|
|
|
|
|
implicit none
|
|
|
|
|
! *** Precision of real and integer variables for python interfacing***
|
2012-02-02 01:50:05 +05:30
|
|
|
|
integer, parameter :: pReal = 8
|
|
|
|
|
integer, parameter :: pInt = 4
|
|
|
|
|
real(pReal), parameter :: DAMASK_NaN = real(Z'7FF0000000000001',pReal)
|
2011-12-01 17:31:13 +05:30
|
|
|
|
real(pReal), parameter :: tol_math_check = 1.0e-8_pReal
|
|
|
|
|
END MODULE prec
|
|
|
|
|
|
|
|
|
|
MODULE debug
|
|
|
|
|
use prec, only: pInt
|
|
|
|
|
implicit none
|
2012-01-13 21:48:16 +05:30
|
|
|
|
integer(pInt), parameter :: debug_verbosity = 1_pInt
|
2011-12-01 17:31:13 +05:30
|
|
|
|
END MODULE debug
|
|
|
|
|
|
|
|
|
|
MODULE numerics
|
2012-02-02 01:50:05 +05:30
|
|
|
|
use prec, only: pInt, pReal
|
2011-12-01 17:31:13 +05:30
|
|
|
|
implicit none
|
2012-02-02 01:50:05 +05:30
|
|
|
|
real(pReal), parameter :: fftw_timelimit = -1.0_pReal
|
|
|
|
|
integer(pInt), parameter :: fftw_planner_flag = 32_pInt
|
2011-12-01 17:31:13 +05:30
|
|
|
|
integer(pInt), parameter :: fixedSeed = 1_pInt
|
|
|
|
|
END MODULE numerics
|
|
|
|
|
|
|
|
|
|
MODULE IO
|
|
|
|
|
CONTAINS
|
|
|
|
|
subroutine IO_error(error_ID,e,i,g,ext_msg)
|
|
|
|
|
|
|
|
|
|
use prec, only: pInt
|
|
|
|
|
implicit none
|
|
|
|
|
integer(pInt), intent(in) :: error_ID
|
|
|
|
|
integer(pInt), optional, intent(in) :: e,i,g
|
|
|
|
|
character(len=*), optional, intent(in) :: ext_msg
|
|
|
|
|
character(len=1024) msg
|
|
|
|
|
|
|
|
|
|
select case (error_ID)
|
|
|
|
|
case default
|
|
|
|
|
print*, 'Error messages not supported when interfacing to Python'
|
|
|
|
|
end select
|
|
|
|
|
end subroutine IO_error
|
|
|
|
|
|
|
|
|
|
END MODULE IO
|