Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DOUAR WSMP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUGG
DOUAR WSMP
Commits
d4750840
Commit
d4750840
authored
15 years ago
by
Douglas Guptill
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
embed_surface_in_octree.f90
+5
-2
5 additions, 2 deletions
embed_surface_in_octree.f90
with
5 additions
and
2 deletions
embed_surface_in_octree.f90
+
5
−
2
View file @
d4750840
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment