old name (for PETSc < 3.15)

This commit is contained in:
Martin Diehl 2021-07-09 14:50:29 +02:00
parent 3870a70a4e
commit 637f78bd52
12 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@
program DAMASK_grid
#include <petsc/finclude/petscsys.h>
use PETScSys
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -7,7 +7,7 @@
module discretization_grid
#include <petsc/finclude/petscsys.h>
use PETScSys
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -9,7 +9,7 @@ module grid_damage_spectral
#include <petsc/finclude/petscdmda.h>
use PETScDMDA
use PETScSNES
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -9,7 +9,7 @@ module grid_mechanical_FEM
#include <petsc/finclude/petscdmda.h>
use PETScDMDA
use PETScSNES
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -9,7 +9,7 @@ module grid_mechanical_spectral_basic
#include <petsc/finclude/petscdmda.h>
use PETScDMDA
use PETScSNES
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif
@ -102,7 +102,7 @@ subroutine grid_mechanical_spectral_basic_init
F ! pointer to solution data
PetscInt, dimension(0:worldsize-1) :: localK
integer(HID_T) :: fileHandle, groupHandle
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
type(MPI_File) :: fileUnit
#else
integer :: fileUnit

View File

@ -9,7 +9,7 @@ module grid_mechanical_spectral_polarisation
#include <petsc/finclude/petscdmda.h>
use PETScDMDA
use PETScSNES
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif
@ -115,7 +115,7 @@ subroutine grid_mechanical_spectral_polarisation_init
F_tau ! specific (sub)pointer
PetscInt, dimension(0:worldsize-1) :: localK
integer(HID_T) :: fileHandle, groupHandle
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
type(MPI_File) :: fileUnit
#else
integer :: fileUnit

View File

@ -9,7 +9,7 @@ module grid_thermal_spectral
#include <petsc/finclude/petscdmda.h>
use PETScDMDA
use PETScSNES
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -8,7 +8,7 @@ module spectral_utilities
#include <petsc/finclude/petscsys.h>
use PETScSys
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif
@ -985,7 +985,7 @@ subroutine utilities_updateCoords(F)
rank_t, rank_b, &
c, &
ierr
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
type(MPI_Request), dimension(4) :: request
type(MPI_Status), dimension(4) :: status
#else
@ -1050,7 +1050,7 @@ subroutine utilities_updateCoords(F)
call MPI_Waitall(4,request,status,ierr)
if(ierr /=0) error stop 'MPI error'
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
! ToDo
#else
if(any(status(MPI_ERROR,:) /= 0)) error stop 'MPI error'

View File

@ -10,7 +10,7 @@ module FEM_utilities
use PETScDMplex
use PETScDMDA
use PETScIS
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -11,7 +11,7 @@ module discretization_mesh
use PETScDMplex
use PETScDMDA
use PETScIS
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -13,7 +13,7 @@ module mesh_mechanical_FEM
use PETScDM
use PETScDMplex
use PETScDT
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif

View File

@ -9,7 +9,7 @@ module parallelization
#ifdef PETSC
#include <petsc/finclude/petscsys.h>
use PETScSys
#ifndef PETSC_HAVE_MPI_F90MODULE_VISIBILITY
#if !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) && !defined(PETSC_HAVE_MPI_F90MODULE)
use MPI_f08
#endif
!$ use OMP_LIB