psmile_trs_finalize.F90

Go to the documentation of this file.
00001 !------------------------------------------------------------------------
00002 ! Copyright 2006-2010, CERFACS, Toulouse, France.
00003 ! All rights reserved. Use is subject to OASIS4 license terms.
00004 !-----------------------------------------------------------------------
00005 !BOP
00006 !
00007 ! !ROUTINE: PSMILe_Trs_finalize
00008 !
00009 ! !INTERFACE:
00010 subroutine psmile_trs_finalize(id_trs_rank, id_err)
00011 
00012 !
00013 ! !USES:
00014 !
00015   use PRISM_constants
00016   USE PSMILe, dummy_interface => PSMILe_Trs_finalize
00017 
00018   IMPLICIT NONE
00019 
00020 !
00021 ! !INPUT PARAMETERS:
00022 !
00023   INTEGER, INTENT (IN)                :: id_trs_rank ! Rank of transformer
00024 !
00025 ! !OUTPUT PARAMETERS:
00026 !
00027   INTEGER, INTENT (Out)               :: id_err   ! error value
00028 
00029 ! !DESCRIPTION:
00030 ! Subroutine "PSMILe_Trs_set_epio" sends some epio informations to set
00031 ! them in the transformer.
00032 !
00033 ! !REVISION HISTORY:
00034 !   Date      Programmer   Description
00035 ! ----------  ----------   -----------
00036 ! 08/10/2003  D. Declat    Creation
00037 !
00038 !EOP
00039 !-------------------------------------------------------------------------
00040 ! $Id: psmile_trs_finalize.F90 2325 2010-04-21 15:00:07Z valcke $
00041 ! $Author: valcke $
00042 !-------------------------------------------------------------------------
00043 !
00044 ! 0. Local declarations
00045 !
00046   INTEGER, DIMENSION(PSMILe_trans_Header_length) :: ila_args 
00047 !
00048 !----------------------------------------------------------------------
00049 !
00050 #ifdef VERBOSE
00051       print *, trim(ch_id), ': PSMILe_Trs_finalize: start'
00052       call psmile_flushstd
00053 #endif /* VERBOSE */
00054 
00055 !
00056 ! 1. Set the header message
00057 !
00058 ! 1.1. Initialize the contents to 999999
00059 
00060   ila_args = 999999
00061 
00062 ! 1.2. Content : action, global rank, src_comp_id, src_process, tgt_comp_id,
00063 !      tgt_process, size
00064 
00065   ila_args(1) = PSMILe_trans_Finalize
00066   ila_args(2) = global_rank
00067 !
00068 ! 2. Send the header message to the transformer
00069 !
00070   call psmile_trs_inform(ila_args, id_trs_rank, id_err)
00071 
00072 !
00073 #ifdef VERBOSE
00074       print *, trim(ch_id), ': PSMILe_Trs_finalize: eof ierror =', id_err
00075       call psmile_flushstd
00076 #endif /* VERBOSE */
00077   
00078 END SUBROUTINE PSMILe_Trs_finalize
00079 
00080 
00081 

Generated on 18 Mar 2011 for Oasis4 by  doxygen 1.6.1