module name follows filename

This commit is contained in:
Martin Diehl 2020-03-20 06:58:55 +01:00
parent 509f8cfcc9
commit 7aa47d8f5a
11 changed files with 29 additions and 25 deletions

View File

@ -10,7 +10,7 @@ module CPFEM
use FEsolving use FEsolving
use math use math
use rotations use rotations
use mesh use discretization_marc
use material use material
use config use config
use crystallite use crystallite
@ -85,7 +85,7 @@ subroutine CPFEM_initAll(el,ip)
call rotations_init call rotations_init
call HDF5_utilities_init call HDF5_utilities_init
call results_init call results_init
call mesh_init(ip, el) call discretization_march_init(ip, el)
call lattice_init call lattice_init
call material_init call material_init
call constitutive_init call constitutive_init

View File

@ -21,11 +21,11 @@ module CPFEM2
use homogenization use homogenization
use constitutive use constitutive
use crystallite use crystallite
#ifdef FEM #if defined(FEM)
use FEM_Zoo use FEM_Zoo
use mesh use mesh
#else #elif defined(Grid)
use mesh_grid use discretization_grid
#endif #endif
implicit none implicit none
@ -53,7 +53,11 @@ subroutine CPFEM_initAll
call lattice_init call lattice_init
call HDF5_utilities_init call HDF5_utilities_init
call results_init call results_init
#if defined(FEM)
call mesh_init call mesh_init
#elif defined(Grid)
call discretization_grid_init
#endif
call material_init call material_init
call constitutive_init call constitutive_init
call crystallite_init call crystallite_init
@ -68,7 +72,7 @@ end subroutine CPFEM_initAll
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
subroutine CPFEM_init subroutine CPFEM_init
write(6,'(/,a)') ' <<<+- CPFEM init -+>>>'; flush(6) write(6,'(/,a)') ' <<<+- CPFEM init -+>>>'; flush(6)
if (interface_restartInc > 0) call crystallite_restartRead if (interface_restartInc > 0) call crystallite_restartRead

View File

@ -178,7 +178,7 @@ subroutine hypela2(d,g,e,de,s,t,dt,ngens,m,nn,kcus,matus,ndi,nshear,disp, &
use numerics use numerics
use FEsolving use FEsolving
use debug use debug
use mesh use discretization_marc
use CPFEM use CPFEM
implicit none implicit none
@ -378,7 +378,7 @@ end subroutine hypela2
subroutine flux(f,ts,n,time) subroutine flux(f,ts,n,time)
use prec use prec
use thermal_conduction use thermal_conduction
use mesh use discretization_marc
implicit none implicit none
real(pReal), dimension(6), intent(in) :: & real(pReal), dimension(6), intent(in) :: &

View File

@ -4,7 +4,7 @@
!> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH !> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH
!> @brief Parse geometry file to set up discretization and geometry for nonlocal model !> @brief Parse geometry file to set up discretization and geometry for nonlocal model
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
module mesh_grid module discretization_grid
#include <petsc/finclude/petscsys.h> #include <petsc/finclude/petscsys.h>
use PETScsys use PETScsys
@ -34,7 +34,7 @@ module mesh_grid
size3offset !< (local) size offset in 3rd direction size3offset !< (local) size offset in 3rd direction
public :: & public :: &
mesh_init discretization_grid_init
contains contains
@ -42,7 +42,7 @@ contains
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
!> @brief reads the geometry file to obtain information on discretization !> @brief reads the geometry file to obtain information on discretization
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
subroutine mesh_init subroutine discretization_grid_init
include 'fftw3-mpi.f03' include 'fftw3-mpi.f03'
real(pReal), dimension(3) :: & real(pReal), dimension(3) :: &
@ -59,7 +59,7 @@ subroutine mesh_init
integer(C_INTPTR_T) :: & integer(C_INTPTR_T) :: &
devNull, z, z_offset devNull, z, z_offset
write(6,'(/,a)') ' <<<+- mesh_grid init -+>>>'; flush(6) write(6,'(/,a)') ' <<<+- discretization_grid init -+>>>'; flush(6)
call readGeom(grid,geomSize,origin,microstructureAt,homogenizationAt) call readGeom(grid,geomSize,origin,microstructureAt,homogenizationAt)
@ -120,7 +120,7 @@ subroutine mesh_init
if (debug_e < 1 .or. debug_e > product(myGrid)) call IO_error(602,ext_msg='element') ! selected element does not exist if (debug_e < 1 .or. debug_e > product(myGrid)) call IO_error(602,ext_msg='element') ! selected element does not exist
if (debug_i /= 1) call IO_error(602,ext_msg='IP') ! selected IP does not exist if (debug_i /= 1) call IO_error(602,ext_msg='IP') ! selected IP does not exist
end subroutine mesh_init end subroutine discretization_grid_init
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
@ -434,4 +434,4 @@ pure function IPneighborhood(grid)
end function IPneighborhood end function IPneighborhood
end module mesh_grid end module discretization_grid

View File

@ -12,7 +12,7 @@ module grid_damage_spectral
use prec use prec
use spectral_utilities use spectral_utilities
use mesh_grid use discretization_grid
use damage_nonlocal use damage_nonlocal
use numerics use numerics

View File

@ -19,7 +19,7 @@ module grid_mech_FEM
use numerics use numerics
use homogenization use homogenization
use discretization use discretization
use mesh_grid use discretization_grid
use debug use debug
implicit none implicit none

View File

@ -19,7 +19,7 @@ module grid_mech_spectral_basic
use config use config
use numerics use numerics
use homogenization use homogenization
use mesh_grid use discretization_grid
use debug use debug
implicit none implicit none

View File

@ -20,7 +20,7 @@ module grid_mech_spectral_polarisation
use config use config
use numerics use numerics
use homogenization use homogenization
use mesh_grid use discretization_grid
use debug use debug
implicit none implicit none

View File

@ -12,7 +12,7 @@ module grid_thermal_spectral
use prec use prec
use spectral_utilities use spectral_utilities
use mesh_grid use discretization_grid
use thermal_conduction use thermal_conduction
use numerics use numerics
use material use material

View File

@ -13,7 +13,7 @@ module spectral_utilities
use math use math
use rotations use rotations
use IO use IO
use mesh_grid use discretization_grid
use numerics use numerics
use debug use debug
use config use config

View File

@ -5,7 +5,7 @@
!> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH !> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH
!> @brief Sets up the mesh for the solver MSC.Marc !> @brief Sets up the mesh for the solver MSC.Marc
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
module mesh module discretization_marc
use IO use IO
use prec use prec
use math use math
@ -37,7 +37,7 @@ module mesh
mesh_FEM2DAMASK_node !< DAMASK node ID for Marc node ID mesh_FEM2DAMASK_node !< DAMASK node ID for Marc node ID
public :: & public :: &
mesh_init discretization_marc_init
contains contains
@ -45,7 +45,7 @@ contains
!> @brief initializes the mesh by calling all necessary private routines the mesh module !> @brief initializes the mesh by calling all necessary private routines the mesh module
!! Order and routines strongly depend on type of solver !! Order and routines strongly depend on type of solver
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
subroutine mesh_init(ip,el) subroutine discretization_marc_init(ip,el)
integer, intent(in) :: el, ip integer, intent(in) :: el, ip
@ -114,7 +114,7 @@ subroutine mesh_init(ip,el)
call geometry_plastic_nonlocal_setIPareaNormal(unscaledNormals/spread(norm2(unscaledNormals,1),1,3)) call geometry_plastic_nonlocal_setIPareaNormal(unscaledNormals/spread(norm2(unscaledNormals,1),1,3))
call geometry_plastic_nonlocal_results call geometry_plastic_nonlocal_results
end subroutine mesh_init end subroutine discretization_marc_init
!-------------------------------------------------------------------------------------------------- !--------------------------------------------------------------------------------------------------
@ -1118,4 +1118,4 @@ logical function containsRange(str,chunkPos)
end function containsRange end function containsRange
end module mesh end module discretization_marc