Skip to content
Snippets Groups Projects
Commit d4750840 authored by Douglas Guptill's avatar Douglas Guptill
Browse files

resize xyz after nnode changed by finding connectivity: two places, one new, one old

parent 92c4a36d
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,9 @@ allocate (olsf%z(olsf%nnode),stat=threadinfo%err)
call heap (threadinfo,'olsf%z','embed_surf...',size(olsf%z),'dp',+1)
call octree_find_node_connectivity (olsf%octree,olsf%noctree,olsf%icon,olsf%nleaves,olsf%x,olsf%y,olsf%z,olsf%nnode)
! olsf%nnode has been changed by octree_find_node_connectivity, so re-size x,y,z
call octreelsf_shrink_xyz(olsf, threadinfo)
write(threadinfo%Logunit,*) '[same] embed_surface_in_octree: olsf%nnode ',olsf%nnode
call flush(threadinfo%Logunit)
......@@ -200,8 +203,8 @@ call heap (threadinfo,'osolve%z', 'embed_surf...',size(osolve%z),'dp',+1)
call octree_find_node_connectivity (osolve%octree,osolve%noctree, &
osolve%icon,osolve%nleaves, &
osolve%x,osolve%y,osolve%z,osolve%nnode)
! osolve%nnode has been changed by octree_find_node_connectivity; re-size x,y,z
call octreesolve_shrink_xyz(threadinfo, osolve, osolve%nnode)
! osolve%nnode has been changed by octree_find_node_connectivity, so re-size x,y,z
call octreesolve_shrink_xyz(osolve, threadinfo)
! now that osolve%nnode is known we can allocate osolve%lsf
allocate (osolve%lsf(osolve%nnode,osolve%nlsf),stat=threadinfo%err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment