1 | MODULE sedmodel |
---|
2 | #if defined key_sed |
---|
3 | !!====================================================================== |
---|
4 | !! *** MODULE sedmodel *** |
---|
5 | !! Sediment model : Main routine of sediment model |
---|
6 | !!====================================================================== |
---|
7 | USE sed |
---|
8 | USE sedini ! sediment variables initialization |
---|
9 | USE sedstp ! time stepping |
---|
10 | |
---|
11 | IMPLICIT NONE |
---|
12 | PRIVATE |
---|
13 | |
---|
14 | !! * Routine accessibility |
---|
15 | PUBLIC sed_model ! called by step.F90 |
---|
16 | |
---|
17 | CONTAINS |
---|
18 | |
---|
19 | SUBROUTINE sed_model ( kt ) |
---|
20 | !!--------------------------------------------------------------------- |
---|
21 | !! *** ROUTINE sed_model *** |
---|
22 | !! |
---|
23 | !! ** Purpose : main routine of sediment model |
---|
24 | !! |
---|
25 | !! |
---|
26 | !! ** Method : - model general initialization |
---|
27 | !! - launch the time-stepping (stp routine) |
---|
28 | !! |
---|
29 | !! History : |
---|
30 | !! ! 07-02 (C. Ethe) Original |
---|
31 | !!---------------------------------------------------------------------- |
---|
32 | INTEGER, INTENT(in) :: kt ! number of iteration |
---|
33 | |
---|
34 | |
---|
35 | ! |
---|
36 | ! Initialization of sediment model |
---|
37 | ! ----------------------------------- |
---|
38 | |
---|
39 | IF( kt == nit000 ) CALL sed_init |
---|
40 | |
---|
41 | |
---|
42 | !! Time stepping of Sediment model |
---|
43 | !!----------------------------------- |
---|
44 | |
---|
45 | CALL sed_stp( kt ) |
---|
46 | |
---|
47 | |
---|
48 | END SUBROUTINE sed_model |
---|
49 | |
---|
50 | #else |
---|
51 | !!====================================================================== |
---|
52 | !! MODULE sedbtb : Dummy module |
---|
53 | !!====================================================================== |
---|
54 | CONTAINS |
---|
55 | SUBROUTINE sed_model( kt ) ! Empty routine |
---|
56 | INTEGER, INTENT(in) :: kt |
---|
57 | WRITE(*,*) 'sed_stp: You should not have seen this print! error?', kt |
---|
58 | END SUBROUTINE sed_model |
---|
59 | |
---|
60 | !!====================================================================== |
---|
61 | #endif |
---|
62 | |
---|
63 | END MODULE sedmodel |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|