Skip to content
Snippets Groups Projects
Commit e1566909 authored by Dave Whipp's avatar Dave Whipp
Browse files

Updated for output of e2dp on cloud

parent 9419bc3a
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,8 @@ MODULE definitions ...@@ -23,7 +23,8 @@ MODULE definitions
end type sheet end type sheet
type cloud type cloud
double precision,dimension(:),pointer::x,y,z,x0,y0,z0,strain,lsf0,temp,press double precision,dimension(:),pointer :: x,y,z,x0,y0,z0,strain,lsf0,temp
double precision,dimension(:),pointer :: press,e2dp
integer,dimension(:),pointer::tag integer,dimension(:),pointer::tag
end type cloud end type cloud
...@@ -343,7 +344,7 @@ allocate(ov%icon(8,ov%nleaves)) ...@@ -343,7 +344,7 @@ allocate(ov%icon(8,ov%nleaves))
allocate(ov%octree(ov%noctree)) allocate(ov%octree(ov%noctree))
allocate(cl%x(npcl),cl%y(npcl),cl%z(npcl),cl%x0(npcl),cl%y0(npcl),cl%z0(npcl)) allocate(cl%x(npcl),cl%y(npcl),cl%z(npcl),cl%x0(npcl),cl%y0(npcl),cl%z0(npcl))
allocate(cl%strain(npcl),cl%lsf0(npcl),cl%temp(npcl),cl%press(npcl)) allocate(cl%strain(npcl),cl%lsf0(npcl),cl%temp(npcl),cl%press(npcl))
allocate(cl%tag(npcl)) allocate(cl%e2dp(npcl),cl%tag(npcl))
!======================== !========================
!=====[nodal values]===== !=====[nodal values]=====
...@@ -487,6 +488,7 @@ read (7) (cl%x(i), & ...@@ -487,6 +488,7 @@ read (7) (cl%x(i), &
cl%lsf0(i), & cl%lsf0(i), &
cl%temp(i), & cl%temp(i), &
cl%press(i), & cl%press(i), &
cl%e2dp(i), &
cl%tag(i), & cl%tag(i), &
i=1,npcl) i=1,npcl)
...@@ -1669,6 +1671,11 @@ if (output_cloud==1) then ...@@ -1669,6 +1671,11 @@ if (output_cloud==1) then
do i=1,npcl do i=1,npcl
if (cl%lsf0(i).le.0.d0) write(iunit,'(f16.11)') cl%press(i) if (cl%lsf0(i).le.0.d0) write(iunit,'(f16.11)') cl%press(i)
enddo enddo
write(30,'(a)')'SCALARS e2dp float 1'
write(30,'(a)')'LOOKUP_TABLE default'
do i=1,npcl
if (cl%lsf0(i).le.0.d0) write(iunit,'(f16.11)') cl%e2dp(i)
enddo
write(30,'(a)')'SCALARS tag integer 1' write(30,'(a)')'SCALARS tag integer 1'
write(30,'(a)')'LOOKUP_TABLE default' write(30,'(a)')'LOOKUP_TABLE default'
do i=1,npcl do i=1,npcl
......
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