Skip to content
Snippets Groups Projects
Commit 69daf656 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 05/07/2021: budgets: write_profilern: full reorganisation to store...

Philippe 05/07/2021: budgets: write_profilern: full reorganisation to store point values correctly (not in vertical profiles)
parent 8a0f9f50
No related branches found
No related tags found
No related merge requests found
...@@ -382,6 +382,7 @@ USE MODE_MSG ...@@ -382,6 +382,7 @@ USE MODE_MSG
USE MODE_ONE_WAY_n USE MODE_ONE_WAY_n
use mode_write_les_n, only: Write_les_n use mode_write_les_n, only: Write_les_n
use mode_write_lfifmn_fordiachro_n, only: WRITE_LFIFMN_FORDIACHRO_n use mode_write_lfifmn_fordiachro_n, only: WRITE_LFIFMN_FORDIACHRO_n
USE MODE_WRITE_PROFILER_n, ONLY: WRITE_PROFILER_n
! !
USE MODI_ADDFLUCTUATIONS USE MODI_ADDFLUCTUATIONS
USE MODI_ADVECTION_METSV USE MODI_ADVECTION_METSV
...@@ -448,7 +449,6 @@ USE MODI_WRITE_AIRCRAFT_BALLOON ...@@ -448,7 +449,6 @@ USE MODI_WRITE_AIRCRAFT_BALLOON
USE MODI_WRITE_DESFM_n USE MODI_WRITE_DESFM_n
USE MODI_WRITE_DIAG_SURF_ATM_N USE MODI_WRITE_DIAG_SURF_ATM_N
USE MODI_WRITE_LFIFM_n USE MODI_WRITE_LFIFM_n
USE MODI_WRITE_PROFILER_n
USE MODI_WRITE_SERIES_n USE MODI_WRITE_SERIES_n
USE MODI_WRITE_STATION_n USE MODI_WRITE_STATION_n
USE MODI_WRITE_SURF_ATM_N USE MODI_WRITE_SURF_ATM_N
......
...@@ -1087,7 +1087,7 @@ select case ( idims ) ...@@ -1087,7 +1087,7 @@ select case ( idims )
if ( Size( tpfields ) /= 1 ) call Print_msg( NVERB_FATAL, 'IO', 'Write_diachro_nc4', & if ( Size( tpfields ) /= 1 ) call Print_msg( NVERB_FATAL, 'IO', 'Write_diachro_nc4', &
'wrong size of tpfields (variable '//trim(tpfields(1)%cmnhname)//')' ) 'wrong size of tpfields (variable '//trim(tpfields(1)%cmnhname)//')' )
call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(1), pvar, [ 3 ], gsplit, gdistributed ) call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(1), pvar, [ 3 ], gsplit, gdistributed )
else if ( tpfields(1)%ndimlist(6) == NMNHDIM_BUDGET_NGROUPS ) then else if ( tpfields(1)%ndimlist(6) == NMNHDIM_BUDGET_NGROUPS .or. tpfields(1)%ndimlist(6) == NMNHDIM_PROFILER_PROC ) then
do ji = 1, Size( pvar, 6 ) do ji = 1, Size( pvar, 6 )
!Remark: [ integer:: ] is a constructor for a zero-size array of integers, [] is not allowed (type can not be determined) !Remark: [ integer:: ] is a constructor for a zero-size array of integers, [] is not allowed (type can not be determined)
call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(ji), pvar(:,:,:,:,:,ji:ji), [ integer:: ], & call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(ji), pvar(:,:,:,:,:,ji:ji), [ integer:: ], &
...@@ -1176,6 +1176,13 @@ select case ( idims ) ...@@ -1176,6 +1176,13 @@ select case ( idims )
end if end if
end if end if
! Loop on the processes
do ji = 1, Size( pvar, 6 )
call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(ji), pvar(:,:,:,:,:,ji:ji), [ 4 ], gsplit, gdistributed )
end do
else if ( tpfields(1)%ndimlist(4) == NMNHDIM_PROFILER_TIME &
.and. tpfields(1)%ndimlist(6) == NMNHDIM_PROFILER_PROC ) then
!Correspond to WRITE_PROFILER_n
! Loop on the processes ! Loop on the processes
do ji = 1, Size( pvar, 6 ) do ji = 1, Size( pvar, 6 )
call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(ji), pvar(:,:,:,:,:,ji:ji), [ 4 ], gsplit, gdistributed ) call Diachro_one_field_write_nc4( tzfile, tpbudiachro, tpfields(ji), pvar(:,:,:,:,:,ji:ji), [ 4 ], gsplit, gdistributed )
......
This diff is collapsed.
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