updated to PETSc 3.4.3, will not compile on all workstations except for maws0X
This commit is contained in:
parent
676e621af2
commit
c4a592867f
|
@ -106,7 +106,7 @@ module DAMASK_spectral_solverAL
|
||||||
DMDestroy, &
|
DMDestroy, &
|
||||||
DMDACreate3D, &
|
DMDACreate3D, &
|
||||||
DMCreateGlobalVector, &
|
DMCreateGlobalVector, &
|
||||||
DMDASetLocalFunction, &
|
DMDASNESSetFunctionLocal, &
|
||||||
PETScFinalize, &
|
PETScFinalize, &
|
||||||
SNESDestroy, &
|
SNESDestroy, &
|
||||||
SNESGetNumberFunctionEvals, &
|
SNESGetNumberFunctionEvals, &
|
||||||
|
@ -158,6 +158,7 @@ subroutine AL_init(temperature)
|
||||||
temperature
|
temperature
|
||||||
#include <finclude/petscdmda.h90>
|
#include <finclude/petscdmda.h90>
|
||||||
#include <finclude/petscsnes.h90>
|
#include <finclude/petscsnes.h90>
|
||||||
|
#include <finclude/petscvec.h>
|
||||||
real(pReal), dimension(:,:,:,:,:), allocatable :: P
|
real(pReal), dimension(:,:,:,:,:), allocatable :: P
|
||||||
real(pReal), dimension(3,3) :: &
|
real(pReal), dimension(3,3) :: &
|
||||||
temp33_Real = 0.0_pReal
|
temp33_Real = 0.0_pReal
|
||||||
|
@ -194,7 +195,8 @@ subroutine AL_init(temperature)
|
||||||
18,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da,ierr)
|
18,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
call DMCreateGlobalVector(da,solution_vec,ierr); CHKERRQ(ierr)
|
call DMCreateGlobalVector(da,solution_vec,ierr); CHKERRQ(ierr)
|
||||||
call DMDASetLocalFunction(da,AL_formResidual,ierr); CHKERRQ(ierr)
|
call DMDASNESSetFunctionLocal(da,INSERT_VALUES,AL_formResidual,dummy,ierr)
|
||||||
|
CHKERRQ(ierr)
|
||||||
call SNESSetDM(snes,da,ierr); CHKERRQ(ierr)
|
call SNESSetDM(snes,da,ierr); CHKERRQ(ierr)
|
||||||
call SNESSetConvergenceTest(snes,AL_converged,dummy,PETSC_NULL_FUNCTION,ierr)
|
call SNESSetConvergenceTest(snes,AL_converged,dummy,PETSC_NULL_FUNCTION,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
|
|
|
@ -103,7 +103,7 @@ module DAMASK_spectral_SolverBasicPETSc
|
||||||
DMDestroy, &
|
DMDestroy, &
|
||||||
DMDACreate3D, &
|
DMDACreate3D, &
|
||||||
DMCreateGlobalVector, &
|
DMCreateGlobalVector, &
|
||||||
DMDASetLocalFunction, &
|
DMDASNESSetFunctionLocal, &
|
||||||
PETScFinalize, &
|
PETScFinalize, &
|
||||||
SNESDestroy, &
|
SNESDestroy, &
|
||||||
SNESGetNumberFunctionEvals, &
|
SNESGetNumberFunctionEvals, &
|
||||||
|
@ -196,8 +196,8 @@ subroutine basicPETSc_init(temperature,nActivePhaseFields,phaseFieldData)
|
||||||
9+nActivePhaseFields,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da,ierr)
|
9+nActivePhaseFields,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
call DMCreateGlobalVector(da,solution_vec,ierr); CHKERRQ(ierr)
|
call DMCreateGlobalVector(da,solution_vec,ierr); CHKERRQ(ierr)
|
||||||
!call DMDASNESSetFunctionLocal(da,INSERT_VALUES,BasicPETSC_formResidual,dummy,ierr); CHKERRQ(ierr) ! needed for newer versions of petsc
|
call DMDASNESSetFunctionLocal(da,INSERT_VALUES,BasicPETSC_formResidual,dummy,ierr)
|
||||||
call DMDASetLocalFunction(da,BasicPETSC_formResidual,ierr); CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
call SNESSetDM(snes,da,ierr); CHKERRQ(ierr)
|
call SNESSetDM(snes,da,ierr); CHKERRQ(ierr)
|
||||||
call SNESSetConvergenceTest(snes,BasicPETSC_converged,dummy,PETSC_NULL_FUNCTION,ierr)
|
call SNESSetConvergenceTest(snes,BasicPETSC_converged,dummy,PETSC_NULL_FUNCTION,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
|
|
|
@ -106,7 +106,7 @@ module DAMASK_spectral_solverPolarisation
|
||||||
DMDestroy, &
|
DMDestroy, &
|
||||||
DMDACreate3D, &
|
DMDACreate3D, &
|
||||||
DMCreateGlobalVector, &
|
DMCreateGlobalVector, &
|
||||||
DMDASetLocalFunction, &
|
DMDASNESSetFunctionLocal, &
|
||||||
PETScFinalize, &
|
PETScFinalize, &
|
||||||
SNESDestroy, &
|
SNESDestroy, &
|
||||||
SNESGetNumberFunctionEvals, &
|
SNESGetNumberFunctionEvals, &
|
||||||
|
@ -158,6 +158,7 @@ subroutine Polarisation_init(temperature)
|
||||||
temperature
|
temperature
|
||||||
#include <finclude/petscdmda.h90>
|
#include <finclude/petscdmda.h90>
|
||||||
#include <finclude/petscsnes.h90>
|
#include <finclude/petscsnes.h90>
|
||||||
|
#include <finclude/petscvec.h>
|
||||||
real(pReal), dimension(:,:,:,:,:), allocatable :: P
|
real(pReal), dimension(:,:,:,:,:), allocatable :: P
|
||||||
real(pReal), dimension(3,3) :: &
|
real(pReal), dimension(3,3) :: &
|
||||||
temp33_Real = 0.0_pReal
|
temp33_Real = 0.0_pReal
|
||||||
|
@ -194,7 +195,8 @@ subroutine Polarisation_init(temperature)
|
||||||
18,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da,ierr)
|
18,1,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,PETSC_NULL_INTEGER,da,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
call DMCreateGlobalVector(da,solution_vec,ierr); CHKERRQ(ierr)
|
call DMCreateGlobalVector(da,solution_vec,ierr); CHKERRQ(ierr)
|
||||||
call DMDASetLocalFunction(da,Polarisation_formResidual,ierr); CHKERRQ(ierr)
|
call DMDASNESSetFunctionLocal(da,INSERT_VALUES,Polarisation_formResidual,dummy,ierr)
|
||||||
|
CHKERRQ(ierr)
|
||||||
call SNESSetDM(snes,da,ierr); CHKERRQ(ierr)
|
call SNESSetDM(snes,da,ierr); CHKERRQ(ierr)
|
||||||
call SNESSetConvergenceTest(snes,Polarisation_converged,dummy,PETSC_NULL_FUNCTION,ierr)
|
call SNESSetConvergenceTest(snes,Polarisation_converged,dummy,PETSC_NULL_FUNCTION,ierr)
|
||||||
CHKERRQ(ierr)
|
CHKERRQ(ierr)
|
||||||
|
|
Loading…
Reference in New Issue