@@ -180,8 +180,8 @@ subroutine ocn_init_lagrangian_particle_tracking(domain, err)!{{{
180
180
LIGHT_DEBUG_WRITE(' g_compProcNeighsNearby = ' COMMA g_compProcNeighsNearby)
181
181
!}}}
182
182
183
- ! now set sums for autocorrelation calculation to be zero
184
- call zero_autocorrelation_sums(domain)
183
+ ! ! now set sums for autocorrelation calculation to be zero
184
+ ! call zero_autocorrelation_sums(domain)
185
185
186
186
! previous compute startup calls
187
187
call intialize_wachspress_coefficients(domain, err)
@@ -260,8 +260,8 @@ subroutine ocn_compute_lagrangian_particle_tracking(domain, timeLevel, err)!{{{
260
260
type (mpas_particle_type), pointer :: particle
261
261
262
262
real (kind=RKIND), dimension(3) :: particlePosition, particleVelocity
263
- real (kind=RKIND), pointer :: xParticle, yParticle, zParticle, lonVel, latVel, buoyancyParticle, sumU, sumV, sumUU , &
264
- sumUV, sumVV
263
+ real (kind=RKIND), pointer :: xParticle, yParticle, zParticle, buoyancyParticle ! , &
264
+ ! lonVel, latVel, sumU, sumV, sumUU, sumUV, sumVV
265
265
real (kind=RKIND), dimension(3) :: xSubStep, diffSubStep, diffParticlePosition
266
266
real (kind=RKIND), pointer :: zLevelParticle
267
267
real (kind=RKIND), dimension(:,:), pointer :: zTop, vertVelocityTop, zMid, areaBArray
@@ -472,13 +472,13 @@ subroutine ocn_compute_lagrangian_particle_tracking(domain, timeLevel, err)!{{{
472
472
call mpas_pool_get_array(particle % haloDataPool, ' indexToParticleID' , indexToParticleID)
473
473
call mpas_pool_get_array(particle % haloDataPool, ' currentCell' , iCell)
474
474
475
- call mpas_pool_get_array(particle % haloDataPool, ' lonVel' , lonVel)
476
- call mpas_pool_get_array(particle % haloDataPool, ' latVel' , latVel)
477
- call mpas_pool_get_array(particle % haloDataPool, ' sumU' , sumU)
478
- call mpas_pool_get_array(particle % haloDataPool, ' sumV' , sumV)
479
- call mpas_pool_get_array(particle % haloDataPool, ' sumUU' , sumUU)
480
- call mpas_pool_get_array(particle % haloDataPool, ' sumUV' , sumUV)
481
- call mpas_pool_get_array(particle % haloDataPool, ' sumVV' , sumVV)
475
+ ! call mpas_pool_get_array(particle % haloDataPool, ' lonVel' , lonVel)
476
+ ! call mpas_pool_get_array(particle % haloDataPool, ' latVel' , latVel)
477
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumU' , sumU)
478
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumV' , sumV)
479
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumUU' , sumUU)
480
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumUV' , sumUV)
481
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumVV' , sumVV)
482
482
#ifdef MPAS_DEBUG
483
483
call mpas_timer_stop(" memtasksLPT" )
484
484
#endif
@@ -745,24 +745,24 @@ subroutine ocn_compute_lagrangian_particle_tracking(domain, timeLevel, err)!{{{
745
745
#endif
746
746
! convert horizontal velocity to lat/ lon velocity
747
747
748
- ! store velocity for use in computing normalized autocorrelation offline
749
- #ifdef MPAS_DEBUG
750
- call mpas_timer_start(" mpas_convert_xyz_velocity_to_latlonLPT" )
751
- #endif
752
- call mpas_convert_xyz_velocity_to_latlon(lonVel, latVel, particlePosition, particleVelocity)
753
- #ifdef MPAS_DEBUG
754
- call mpas_timer_stop(" mpas_convert_xyz_velocity_to_latlonLPT" )
755
- #endif
748
+ ! ! store velocity for use in computing normalized autocorrelation offline
749
+ ! #ifdef MPAS_DEBUG
750
+ ! call mpas_timer_start(" mpas_convert_xyz_velocity_to_latlonLPT" )
751
+ ! #endif
752
+ ! call mpas_convert_xyz_velocity_to_latlon(lonVel, latVel, particlePosition, particleVelocity)
753
+ ! #ifdef MPAS_DEBUG
754
+ ! call mpas_timer_stop(" mpas_convert_xyz_velocity_to_latlonLPT" )
755
+ ! #endif
756
756
757
- ! now store components needed to compute integral timescale
758
- #ifdef MPAS_DEBUG
759
- call mpas_timer_start(" storeSingleParticleStats" )
760
- #endif
761
- sumU = sumU + lonVel
762
- sumV = sumV + latVel
763
- sumUU = sumUU + lonVel* lonVel
764
- sumUV = sumUV + lonVel* latVel
765
- sumVV = sumVV + latVel* latVel
757
+ ! ! now store components needed to compute integral timescale
758
+ ! #ifdef MPAS_DEBUG
759
+ ! call mpas_timer_start(" storeSingleParticleStats" )
760
+ ! #endif
761
+ ! sumU = sumU + lonVel
762
+ ! sumV = sumV + latVel
763
+ ! sumUU = sumUU + lonVel* lonVel
764
+ ! sumUV = sumUV + lonVel* latVel
765
+ ! sumVV = sumVV + latVel* latVel
766
766
#ifdef MPAS_DEBUG
767
767
call mpas_timer_stop(" storeSingleParticleStats" )
768
768
#endif
@@ -1646,8 +1646,8 @@ subroutine initialize_particle_properties(domain, timeLevel, err)!{{{
1646
1646
type (mpas_particle_type), pointer :: particle
1647
1647
1648
1648
real (kind= RKIND), dimension (3 ) :: particlePosition, particleVelocity
1649
- real (kind= RKIND), pointer :: xParticle, yParticle, zParticle, lonVel, latVel, buoyancyParticle, sumU, sumV, sumUU , &
1650
- sumUV, sumVV
1649
+ real (kind= RKIND), pointer :: xParticle, yParticle, zParticle, lonVel, latVel, buoyancyParticle ! , &
1650
+ ! lonVel, latVel, sumU, sumV, sumUU, sumUV, sumVV
1651
1651
real (kind= RKIND), dimension (3 ) :: xSubStep, diffSubStep, diffParticlePosition
1652
1652
real (kind= RKIND), pointer :: zLevelParticle
1653
1653
real (kind= RKIND), dimension (:,:), pointer :: zTop, vertVelocityTop, zMid, areaBArray
@@ -1746,6 +1746,8 @@ subroutine initialize_particle_properties(domain, timeLevel, err)!{{{
1746
1746
call mpas_pool_get_array(particle % haloDataPool, ' yParticle' , yParticle)
1747
1747
call mpas_pool_get_array(particle % haloDataPool, ' zParticle' , zParticle)
1748
1748
call mpas_pool_get_array(particle % haloDataPool, ' currentCell' , iCell)
1749
+ iCell = - 1
1750
+
1749
1751
particlePosition(1 ) = xParticle
1750
1752
particlePosition(2 ) = yParticle
1751
1753
particlePosition(3 ) = zParticle
@@ -1758,13 +1760,13 @@ subroutine initialize_particle_properties(domain, timeLevel, err)!{{{
1758
1760
call mpas_pool_get_array(particle % haloDataPool, ' buoyancyParticle' , buoyancyParticle)
1759
1761
call mpas_pool_get_array(particle % haloDataPool, ' indexToParticleID' , indexToParticleID)
1760
1762
1761
- call mpas_pool_get_array(particle % haloDataPool, ' lonVel' , lonVel)
1762
- call mpas_pool_get_array(particle % haloDataPool, ' latVel' , latVel)
1763
- call mpas_pool_get_array(particle % haloDataPool, ' sumU' , sumU)
1764
- call mpas_pool_get_array(particle % haloDataPool, ' sumV' , sumV)
1765
- call mpas_pool_get_array(particle % haloDataPool, ' sumUU' , sumUU)
1766
- call mpas_pool_get_array(particle % haloDataPool, ' sumUV' , sumUV)
1767
- call mpas_pool_get_array(particle % haloDataPool, ' sumVV' , sumVV)
1763
+ ! call mpas_pool_get_array(particle % haloDataPool, ' lonVel' , lonVel)
1764
+ ! call mpas_pool_get_array(particle % haloDataPool, ' latVel' , latVel)
1765
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumU' , sumU)
1766
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumV' , sumV)
1767
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumUU' , sumUU)
1768
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumUV' , sumUV)
1769
+ ! call mpas_pool_get_array(particle % haloDataPool, ' sumVV' , sumVV)
1768
1770
1769
1771
!}}}
1770
1772
@@ -1818,9 +1820,8 @@ subroutine initialize_particle_properties(domain, timeLevel, err)!{{{
1818
1820
1819
1821
LIGHT_DEBUG_WRITE(iLevel COMMA particleVelocity)
1820
1822
1821
- ! store velocity for use in computing normalized autocorrelation offline
1822
-
1823
- call mpas_convert_xyz_velocity_to_latlon(lonVel, latVel, particlePosition, particleVelocity)
1823
+ ! ! store velocity for use in computing normalized autocorrelation offline
1824
+ ! call mpas_convert_xyz_velocity_to_latlon(lonVel, latVel, particlePosition, particleVelocity)
1824
1825
!}}}
1825
1826
1826
1827
! get next particle to process on the list
@@ -2129,52 +2130,52 @@ subroutine velocity_time_interpolation(particleVelocity, particleVelocityVert, &
2129
2130
2130
2131
end subroutine velocity_time_interpolation !}}}
2131
2132
2132
- subroutine zero_autocorrelation_sums(domain) !{{{
2133
- implicit none
2134
-
2135
- ! input/output variables
2136
- type (domain_type), intent(inout) :: domain
2137
- ! local
2138
- type (block_type), pointer :: block
2139
- type (mpas_particle_list_type), pointer :: particlelist
2140
- type (mpas_particle_type), pointer :: particle
2141
- ! output variables (per particle)
2142
- real (kind=RKIND), pointer :: sumU, sumV, sumUU, sumUV, sumVV
2143
- integer, pointer :: currentCell
2144
-
2145
- ! get the appropriate pools
2146
- block => domain % blocklist
2147
- do while (associated(block)) !{{{
2148
- particlelist => block % particlelist
2149
- do while(associated(particlelist)) !{{{
2150
- ! get pointers / option values
2151
- particle => particlelist % particle
2152
-
2153
- ! get values (may want a flag for reinitialization in the future)
2154
- !call mpas_pool_get_array(particle % haloDataPool, ' sumU' , sumU)
2155
- !call mpas_pool_get_array(particle % haloDataPool, ' sumV' , sumV)
2156
- !call mpas_pool_get_array(particle % haloDataPool, ' sumUU' , sumUU)
2157
- !call mpas_pool_get_array(particle % haloDataPool, ' sumUV' , sumUV)
2158
- !call mpas_pool_get_array(particle % haloDataPool, ' sumVV' , sumVV)
2159
- call mpas_pool_get_array(particle % haloDataPool, ' currentCell' , currentCell)
2160
-
2161
- ! initialize the values
2162
- !sumU = 0.0_RKIND
2163
- !sumV = 0.0_RKIND
2164
- !sumUU = 0.0_RKIND
2165
- !sumUV = 0.0_RKIND
2166
- !sumVV = 0.0_RKIND
2167
- currentCell = -1
2168
-
2169
- ! get next particle to process on the list
2170
- particlelist => particlelist % next
2171
- end do !}}}
2172
-
2173
- ! get next block
2174
- block => block % next
2175
- end do !}}}
2176
-
2177
- end subroutine zero_autocorrelation_sums !}}}
2133
+ ! subroutine zero_autocorrelation_sums(domain) !{{{
2134
+ ! implicit none
2135
+ !
2136
+ ! ! input/output variables
2137
+ ! type (domain_type), intent(inout) :: domain
2138
+ ! ! local
2139
+ ! type (block_type), pointer :: block
2140
+ ! type (mpas_particle_list_type), pointer :: particlelist
2141
+ ! type (mpas_particle_type), pointer :: particle
2142
+ ! ! output variables (per particle)
2143
+ ! real (kind=RKIND), pointer :: sumU, sumV, sumUU, sumUV, sumVV
2144
+ ! integer, pointer :: currentCell
2145
+ !
2146
+ ! ! get the appropriate pools
2147
+ ! block => domain % blocklist
2148
+ ! do while (associated(block)) !{{{
2149
+ ! particlelist => block % particlelist
2150
+ ! do while(associated(particlelist)) !{{{
2151
+ ! ! get pointers / option values
2152
+ ! particle => particlelist % particle
2153
+ !
2154
+ ! ! get values (may want a flag for reinitialization in the future)
2155
+ ! !call mpas_pool_get_array(particle % haloDataPool, ' sumU' , sumU)
2156
+ ! !call mpas_pool_get_array(particle % haloDataPool, ' sumV' , sumV)
2157
+ ! !call mpas_pool_get_array(particle % haloDataPool, ' sumUU' , sumUU)
2158
+ ! !call mpas_pool_get_array(particle % haloDataPool, ' sumUV' , sumUV)
2159
+ ! !call mpas_pool_get_array(particle % haloDataPool, ' sumVV' , sumVV)
2160
+ ! call mpas_pool_get_array(particle % haloDataPool, ' currentCell' , currentCell)
2161
+ !
2162
+ ! ! initialize the values
2163
+ ! !sumU = 0.0_RKIND
2164
+ ! !sumV = 0.0_RKIND
2165
+ ! !sumUU = 0.0_RKIND
2166
+ ! !sumUV = 0.0_RKIND
2167
+ ! !sumVV = 0.0_RKIND
2168
+ ! currentCell = -1
2169
+ !
2170
+ ! ! get next particle to process on the list
2171
+ ! particlelist => particlelist % next
2172
+ ! end do !}}}
2173
+ !
2174
+ ! ! get next block
2175
+ ! block => block % next
2176
+ ! end do !}}}
2177
+ !
2178
+ ! end subroutine zero_autocorrelation_sums !}}}
2178
2179
2179
2180
!***********************************************************************
2180
2181
!
0 commit comments