Skip to content
Snippets Groups Projects
Commit 527efb7e authored by ESCOBAR MUNOZ Juan's avatar ESCOBAR MUNOZ Juan
Browse files

Juan 22/11/2023:turb.f90, GPU opt -> MNH_MEM_GET( zcoef_ampl + zlm_cloud )

parent 63cbcb68
No related branches found
No related tags found
No related merge requests found
...@@ -2024,8 +2024,16 @@ real, dimension(:,:,:), pointer , contiguous :: zlm_cloud ...@@ -2024,8 +2024,16 @@ real, dimension(:,:,:), pointer , contiguous :: zlm_cloud
call Print_msg( NVERB_FATAL, 'GEN', 'TURB', 'OpenACC: CLOUD_MODIF_LM not yet implemented' ) call Print_msg( NVERB_FATAL, 'GEN', 'TURB', 'OpenACC: CLOUD_MODIF_LM not yet implemented' )
#endif #endif
#ifndef MNH_OPENACC
allocate( zcoef_ampl(size( put, 1 ), size( put, 2 ), size( put, 3) ) ) allocate( zcoef_ampl(size( put, 1 ), size( put, 2 ), size( put, 3) ) )
allocate( zlm_cloud (size( put, 1 ), size( put, 2 ), size( put, 3) ) ) allocate( zlm_cloud (size( put, 1 ), size( put, 2 ), size( put, 3) ) )
#else
!Pin positions in the pools of MNH memory
CALL MNH_MEM_POSITION_PIN()
CALL MNH_MEM_GET( zcoef_ampl, size( put, 1 ), size( put, 2 ), size( put, 3) )
CALL MNH_MEM_GET( zlm_cloud , size( put, 1 ), size( put, 2 ), size( put, 3) )
#endif
! !
!* 1. INITIALISATION !* 1. INITIALISATION
! -------------- ! --------------
...@@ -2139,7 +2147,12 @@ IF ( OTURB_DIAG .AND. tpfile%lopened ) THEN ...@@ -2139,7 +2147,12 @@ IF ( OTURB_DIAG .AND. tpfile%lopened ) THEN
! !
ENDIF ENDIF
#ifndef MNH_OPENACC
deallocate( zcoef_ampl, zlm_cloud ) deallocate( zcoef_ampl, zlm_cloud )
#else
!Release all memory allocated with MNH_MEM_GET calls since last call to MNH_MEM_POSITION_PIN
CALL MNH_MEM_RELEASE()
#endif
END SUBROUTINE CLOUD_MODIF_LM END SUBROUTINE CLOUD_MODIF_LM
! !
......
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