@@ -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
122122end 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