The TELEMAC-MASCARET system  trunk
cvsp_check_steady.f
Go to the documentation of this file.
1 ! ****************************
2  SUBROUTINE cvsp_check_steady
3 ! ****************************
4 !
5  &(j)
6 !
7 !***********************************************************************
8 ! SISYPHE V7P2 16/05/2017
9 !***********************************************************************
10 !
11 !brief CHECKS VERTICAL SORTING PROFILE TO BE STEADY IN PRO_D
12 !
13 !history UWE MERKEL
14 !+ 2012
15 !+ V6P2
16 !+
17 !
18 !history P. A. TASSI (EDF R&D, LNHE)
19 !+ 12/03/2013
20 !+ V6P3
21 !+ Cleaning, cosmetic
22 !
23 !history UWE MERKEL, R KOPMANN (BAW)
24 !+ 18/06/2016, 2017
25 !+ V6P3, V7P2
26 !+
27 !
28 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29 !| J |<--| INDEX OF A POINT IN MESH
30 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 !
33 
34  IMPLICIT NONE
35 !
36 !+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
37 !
38  INTEGER, INTENT(IN) :: J
39  INTEGER K, JG
40  DOUBLE PRECISION AT
41 !
42 !-----------------------------------------------------------------------
43 !
44  jg = j
45  IF(ncsize > 1) jg = mesh%KNOLG%I(j)
46 !
47  at = dt*lt/percou
48 !
49 !-----------------------------------------------------------------------
50 !
51  DO k=1,pro_max(j)-1
52  IF((pro_d(j,k+1,1) - pro_d(j,k,1)).LT.0.d0) THEN
53  WRITE(lu,*) 'ERR: UNSTEADY VSP! ,J,K,AT',
54  & jg, k, at, pro_d(j,k+1,1), pro_d(j,k,1)
55  CALL cvsp_p('./','UNSTEADY_',jg)
56  CALL layers_p('./','UNSTEADY_', jg)
57  CALL plante(1)
58  stop
59  ENDIF
60  ENDDO
61 !
62 !-----------------------------------------------------------------------
63 !
64  RETURN
65  END SUBROUTINE
66 
subroutine layers_p(PATH_PRE, FILE_PRE, JG)
Definition: layers_p.f:7
double precision, target dt
subroutine cvsp_p(PATH_PRE, FILE_PRE, JG)
Definition: cvsp_p.f:7
integer, dimension(:), allocatable pro_max
subroutine cvsp_check_steady(J)
double precision, dimension(:,:,:), allocatable, target pro_d
type(bief_mesh), target mesh