prism_terminated.F90

Go to the documentation of this file.
00001 !-----------------------------------------------------------------------
00002 ! Copyright 2006-2010, CERFACS, Toulouse, France.
00003 ! Copyright 2006-2010, SGI Germany, Munich, Germany.
00004 ! Copyright 2006-2010, NEC Europe Ltd., London, UK.
00005 ! All rights reserved. Use is subject to OASIS4 license terms.
00006 !-----------------------------------------------------------------------
00007 !BOP
00008 !
00009 ! !ROUTINE: PRISM_Terminated
00010 !
00011 ! !INTERFACE:
00012 
00013       subroutine prism_terminated ( flag, ierror )
00014 !
00015 ! !USES:
00016 !
00017       use PRISM, dummy_interface => prism_terminated
00018 !
00019       use PSMILe, only : PRISM_is_terminated, len_cvs_string
00020 
00021       implicit none
00022 !
00023 ! !OUTPUT PARAMETERS:
00024 !
00025       Logical, Intent (Out)               :: flag
00026 
00027 !     Returns .true. if prism_terminate has been called before
00028 
00029       Integer, Intent (Out)               :: ierror
00030 
00031 !     Returns the error code of prism_init;
00032 !             ierror = 0 : No error
00033 !             ierror > 0 : Severe error
00034 !
00035 ! !DESCRIPTION:
00036 !
00037 !   Subroutine prism_terminated provides a flag to check whether prism
00038 !   was already terminated by a call to prism_terminate.
00039 !
00040 !
00041 ! !SEE ALSO:
00042 !
00043 !   prism_terminate, prism_init, prism_initialized
00044 !
00045 ! !REVISION HISTORY:
00046 !
00047 !   Date      Programmer   Description
00048 ! ----------  ----------   -----------
00049 ! 02.12.03    R. Redler    created
00050 !
00051 !EOP
00052 !----------------------------------------------------------------------
00053 !
00054 ! $Id: prism_terminated.F90 2325 2010-04-21 15:00:07Z valcke $
00055 ! $Author: valcke $
00056 !
00057   Character(len=len_cvs_string), save :: mycvs = 
00058       '$Id: prism_terminated.F90 2325 2010-04-21 15:00:07Z valcke $'
00059 !
00060 !----------------------------------------------------------------------
00061 
00062       if ( PRISM_is_terminated ) then
00063 
00064          flag = .true.
00065 
00066       else
00067 
00068          flag = .false.
00069 
00070       endif
00071 
00072       ierror = 0
00073 
00074       end subroutine prism_terminated

Generated on 18 Mar 2011 for Oasis4 by  doxygen 1.6.1