source: trunk/NS3D/SRC/JMFFT-8.0/src/jmgetseterreur.f90 @ 8

Last change on this file since 8 was 8, checked in by xlvlod, 17 years ago

Import code JM chomaz

File size: 916 bytes
Line 
1! $Header: /opt/cvsroot/jmfft/lib/jmgetseterreur.f90,v 1.2 2004/04/01 15:48:32 teuler v8 $
2! JMFFTLIB : A library of portable fourier transform subroutines
3!            emulating Cray SciLib
4! Author   : Jean-Marie Teuler, CNRS, teuler@lcp.u-psud.fr
5!
6! Permission is granted to copy and distribute this file or modified
7! versions of this file for no fee, provided the copyright notice and
8! this permission notice are preserved on all copies.
9
10subroutine jmgetseterreur(arret,type)
11
12  ! Subroutine qui permet de stocker une valeur statique
13  ! Ceci evite de recourir a un common ...
14
15  implicit none
16
17  ! Arguments
18  logical, intent(inout) :: arret
19  character(len=1), intent(in) :: type
20
21  ! Variables locales
22
23  ! Variable statique
24  logical, save :: arret_last = .true.
25
26  if (type == 's') then
27    arret_last = arret
28  else if (type == 'g') then
29    arret = arret_last
30  end if
31
32end subroutine jmgetseterreur
Note: See TracBrowser for help on using the repository browser.