Initial nodal and ip coordinates added to the HDF5 output file

This commit is contained in:
Abisheik Panneerselvam 2021-05-31 15:01:42 +02:00
parent 718880f177
commit 650fbd7509
1 changed files with 2 additions and 3 deletions

View File

@ -144,10 +144,10 @@ subroutine discretization_mesh_init(restart)
CHKERRQ(ierr)
! Get initial nodal coordinates
call DMGetCoordinates(geomMesh,coords,ierr)
call DMGetCoordinates(geomMesh,coords_node0,ierr)
CHKERRQ(ierr)
allocate(mesh_node0_temp(dimPlex*mesh_Nnodes))
call VecGetArrayF90(coords, mesh_node0_temp,ierr)
call VecGetArrayF90(coords_node0, mesh_node0_temp,ierr)
CHKERRQ(ierr)
mesh_maxNips = FEM_nQuadrature(dimPlex,integrationOrder)
@ -167,7 +167,6 @@ subroutine discretization_mesh_init(restart)
allocate(mesh_node0(3,mesh_Nnodes),source=0.0_pReal)
mesh_node0 = reshape(mesh_node0_temp,[dimPlex,mesh_Nnodes])
deallocate(mesh_node0_temp)
call discretization_init(materialAt,&
reshape(mesh_ipCoordinates,[3,mesh_maxNips*mesh_NcpElems]), &