Skip to content
Snippets Groups Projects
Commit 1cde12cf authored by Andrew Boyd's avatar Andrew Boyd
Browse files

resolved z-coord problem

parent 27e461cc
No related branches found
No related tags found
No related merge requests found
...@@ -72,22 +72,24 @@ contains ...@@ -72,22 +72,24 @@ contains
! !
! Define adjusted smoothing constant ! Define adjusted smoothing constant
! kcon = log((one-0.0001)/0.0001)/(smoopar*0.5*dx) ! 0.0001 is the y-value, smoopar: desired number of affected points ! kcon = log((one-0.0001)/0.0001)/(smoopar*0.5*dx) ! 0.0001 is the y-value, smoopar: desired number of affected points
! write(*,*) nzi, nzf
do k=nzi,nzf do k=nzi,nzf
zm=(real(nzi+k-2,mytype))*dz zm=(real(k-1,mytype))*dz
! write(*,*) k, zm
do j=nyi,nyf do j=nyi,nyf
ym=yp(j) ym=yp(j)
do i=nxi,nxf do i=nxi,nxf
xm=real(i-1,mytype)*dx xm=real(i-1,mytype)*dx
point=[xm, ym, zm] point=[xm, ym, zm]
! call EllipsoidalRadius(point, ce, orientation, shape, r) ! call EllipsoidalRadius(point, ce, orientation, shape, r)
! r=sqrt_prec((xm-cexx)**two+(ym-ceyy)**two+(zm-cezz)**two) r=sqrt_prec((xm-cexx)**two+(ym-ceyy)**two+(zm-cezz)**two)
r=sqrt_prec((xm-cexx)**two+(ym-ceyy)**two) ! r=sqrt_prec((xm-cexx)**two+(ym-ceyy)**two)
if (r-ra.gt.zeromach) then if (r-ra.gt.zeromach) then
! write(*,*) i, j, k
cycle cycle
endif endif
! write(*,*) i, j, k ! write(*,*) i, j, k, zm
epsi(i,j,k)=remp epsi(i,j,k)=remp
! write(*,*) remp ! write(*,*) remp
enddo enddo
......
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