changed pointer attribute to allocatable in tState. since the pointers are only used for allocation, allocatables should do the same job more efficiently
This commit is contained in:
parent
28f3ba6841
commit
baaf104238
|
@ -63,21 +63,21 @@ module prec
|
||||||
#ifdef NEWSTATE
|
#ifdef NEWSTATE
|
||||||
!http://stackoverflow.com/questions/3948210/can-i-have-a-pointer-to-an-item-in-an-allocatable-array
|
!http://stackoverflow.com/questions/3948210/can-i-have-a-pointer-to-an-item-in-an-allocatable-array
|
||||||
type, public :: tState
|
type, public :: tState
|
||||||
integer(pInt) :: sizeState,sizeDotState
|
integer(pInt) :: sizeState,sizeDotState
|
||||||
logical :: nonlocal
|
logical :: nonlocal
|
||||||
real(pReal), pointer, dimension(:) :: atolState
|
real(pReal), allocatable, dimension(:) :: atolState
|
||||||
real(pReal), pointer, dimension(:,:) :: state, & ! material points, state size
|
real(pReal), allocatable, dimension(:,:) :: state, & ! material points, state size
|
||||||
dotState, &
|
dotState, &
|
||||||
state0, &
|
state0, &
|
||||||
partionedState0, &
|
partionedState0, &
|
||||||
subState0, &
|
subState0, &
|
||||||
state_backup, &
|
state_backup, &
|
||||||
deltaState, &
|
deltaState, &
|
||||||
previousDotState, &
|
previousDotState, &
|
||||||
previousDotState2, &
|
previousDotState2, &
|
||||||
dotState_backup, &
|
dotState_backup, &
|
||||||
RK4dotState
|
RK4dotState
|
||||||
real(pReal), pointer, dimension(:,:,:) :: RKCK45dotState
|
real(pReal), allocatable, dimension(:,:,:) :: RKCK45dotState
|
||||||
end type
|
end type
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue