source: altifloat/src/floater_delta.d @ 98

Last change on this file since 98 was 98, checked in by jbrlod, 11 years ago

add function run_inc

File size: 3.2 KB
Line 
1defval jtlag 12//nombre de pas de temps Delta t/ delta t
2defval nlon 87 //nbre de points de grilles en longitude
3defval nlat 58 //nbre de points de grilles en latitude
4defval nfloat 1 //nbre de flotteurs
5
6hat_name "floater.h"
7
8
9
10option o_m1qn3
11option o_gradtest
12//option  O_EXTOBJ "../object/ncutil.o" //for aviso files
13
14//    name   M upt offt  dt    nbstep
15traj T_float M 1    0     1    jtlag //trajectoire pour r
16traj T_euler M 0    0     1    1 //trajectoire pour u et v
17
18//deltas
19traj T_float_d D 1    0     1    jtlag //trajectoires type modele ou tangent. permet de controler quel type activer dans le i
20traj T_euler_d  D 0    0     1    1 
21
22space S_float M nfloat    T_float
23space S_euler M nlon nlat T_euler
24space S_eulerlocate M nfloat nlon nlat T_float
25
26//deltas
27space S_float_d M nfloat    T_float_d
28space S_euler_d M nlon nlat T_euler_d
29space S_eulerlocate_d M nfloat nlon nlat T_float_d
30
31
32modul r_float space S_float input 4  output 2 tempo
33modul ur      space S_float input 18 output 2 tempo
34modul uinter space S_float noward   output 8 tempo
35modul xinter space S_float noward   output 8 tempo
36
37modul u       space S_euler noward   output 1  //noward veut dire pas de calcul
38modul v           space S_euler noward   output 1 
39modul locate  space S_eulerlocate input 2  output 1 tempo
40
41//deltas
42modul r_float_d space S_float_d input 4  output 2 tempo
43modul ur_d      space S_float_d input 18 output 2 tempo
44modul uinter_d space S_float_d noward   output 8 tempo
45//modul xinter_d space S_float_d noward   output 8 tempo
46
47modul u_d       space S_euler_d noward   output 1 target //noward veut dire pas de calcul
48modul v_d                 space S_euler_d noward   output 1 target
49modul locate_d  space S_eulerlocate_d input 2  output 1 tempo
50modul r_cout_d space S_float_d input 2  output 2 tempo cout
51
52
53
54
55exec disp_modul //afficher les modules lors de la ganeration du code
56
57ctin r_float  1..2   from r_float 1..2 i t-1 // i par default est la premier dimension, ici i=1 floater
58ctin r_float  3..4   from ur      1..2 i t    // comme c'est un calcul, il depend pas de la valeur initiale
59
60ctin ur       1..8   from uinter 1..8 i t
61ctin ur       9..16  from xinter 1..8 i t
62ctin ur       17..18 from r_float 1..2 i t-1
63
64ctin locate   1..2   from r_float 1..2 i t-1
65
66//deltas
67ctin r_float_d  1..2   from r_float_d 1..2 i t-1 // i par default est la premier dimension, ici i=1 floater
68ctin r_float_d  3..4   from ur_d      1..2 i t    // comme c'est un calcul, il depend pas de la valeur initiale
69
70ctin ur_d       1..8   from uinter_d 1..8 i t
71ctin ur_d       9..16  from xinter 1..8 i t
72ctin ur_d       17..18 from r_float 1..2 i t-1
73
74ctin locate_d   1..2   from r_float_d 1..2 i t-1
75ctin r_cout_d   1..2   from r_float_d 1..2 i t       
76
77exec disp_ct_in //afficher les connexions
78
79order modinspace S_float
80        order YA1
81                ur r_float
82        forder
83forder
84
85order modinspace S_eulerlocate
86        order YA1 YA2 YA3
87                locate
88        forder
89forder
90
91order spaceintraj T_float
92        S_eulerlocate S_float
93forder
94 
95//deltas
96order modinspace S_float_d
97        order YA1
98                ur_d r_float_d r_cout_d
99        forder
100forder
101
102order modinspace S_eulerlocate_d
103        order YA1 YA2 YA3
104                locate_d
105        forder
106forder
107
108order spaceintraj T_float_d
109        S_eulerlocate_d S_float_d
110forder
111 
112 
113//insert_fct arg load_aviso
114insert_fct update_uv
115insert_fct arg run_inc
116
Note: See TracBrowser for help on using the repository browser.