Skip to content

Commit 2490adb

Browse files
committed
Merge branch '410-support-quad-hex-mesh' into development
2 parents 84207d4 + 7c24081 commit 2490adb

File tree

5 files changed

+507
-255
lines changed

5 files changed

+507
-255
lines changed

PRIVATE

src/IO.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,8 @@ subroutine IO_error_new(error_ID, &
509509

510510
!-------------------------------------------------------------------------------------------------
511511
! errors related to the mesh solver
512-
case (821)
513-
msg = 'order not supported'
512+
case (800)
513+
msg = 'invalid mesh'
514514

515515
!-------------------------------------------------------------------------------------------------
516516
! errors related to the grid solver

src/mesh/FEM_utilities.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ subroutine FEM_utilities_init(num_mesh)
9292
p_s = num_mesh%get_asInt('p_s',defaultVal = 2)
9393
p_i = num_mesh%get_asInt('p_i',defaultVal = p_s)
9494

95-
#if (PETSC_VERSION_MINOR>=18)
95+
#if (PETSC_VERSION_MINOR>17)
9696
if (p_s < 1) &
9797
#else
9898
if (p_s < 1 .or. p_s > size(FEM_nQuadrature,2)) &
9999
#endif
100-
call IO_error(821,ext_msg='shape function order (p_s) out of bounds')
100+
call IO_error(301,ext_msg='shape function order (p_s) out of bounds')
101101
if (p_i < max(1,p_s-1) .or. p_i > p_s) &
102-
call IO_error(821,ext_msg='integration order (p_i) out of bounds')
102+
call IO_error(301,ext_msg='integration order (p_i) out of bounds')
103103

104104
flush(IO_STDOUT)
105105

@@ -117,7 +117,7 @@ subroutine FEM_utilities_init(num_mesh)
117117
call PetscOptionsSetValue(PETSC_NULL_OPTIONS,'-petscds_force_quad','0',err_PETSc)
118118
CHKERRQ(err_PETSc)
119119

120-
wgt = real(mesh_maxNips*mesh_NcpElemsGlobal,pREAL)**(-1)
120+
wgt = real(mesh_maxNips*mesh_nElems,pREAL)**(-1)
121121

122122
end subroutine FEM_utilities_init
123123

@@ -137,7 +137,7 @@ subroutine utilities_constitutiveResponse(status, Delta_t,P_av,forwardData)
137137

138138
print'(/,1x,a)', '... evaluating constitutive response ......................................'
139139

140-
call homogenization_mechanical_response(status,Delta_t,1,int(mesh_maxNips*mesh_NcpElems)) ! calculate P field
140+
call homogenization_mechanical_response(status,Delta_t,1,int(mesh_maxNips*mesh_nElems)) ! calculate P field
141141
cutBack = .false.
142142

143143
P_av = sum(homogenization_P,dim=3) * wgt

0 commit comments

Comments
 (0)