Hi all,
I tried to optimize some of loops to speed MPAS simulation, but I have encountered an unknown issue and hope someone can answer me.
Here is the loop I'm going to optimize by change the loop order from
to
github.com
By checking the variable I can confirm changing the loop order doesn't affect the data copy result since each element is independent to each other. But after I ran the simulation the values were changed...that is not sense...
Jason[/URL]
I tried to optimize some of loops to speed MPAS simulation, but I have encountered an unknown issue and hope someone can answer me.
Here is the loop I'm going to optimize by change the loop order from
Code:
do m = 1,num_months
do k = 1,levsiz
do j = 1,lonsiz
[ code ]
end do
end do
end do
Code:
do j = 1,lonsiz
do k = 1,levsiz
do m = 1,num_months
[ code ]
end do
end do
end do
MPAS-Model/src/core_atmosphere/physics/mpas_atmphys_o3climatology.F at master · MPAS-Dev/MPAS-Model
Repository for MPAS models and shared framework releases. - MPAS-Dev/MPAS-Model
By checking the variable I can confirm changing the loop order doesn't affect the data copy result since each element is independent to each other. But after I ran the simulation the values were changed...that is not sense...
Jason[/URL]
Last edited: