1 | defval jtlag 21//nombre de pas de temps Delta t/ delta t |
---|
2 | defval nlon 87 //nbre de points de grilles en longitude |
---|
3 | defval nlat 58 //nbre de points de grilles en latitude |
---|
4 | defval nfloat 1 //nbre de flotteurs |
---|
5 | |
---|
6 | hat_name "floater.h" |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | option o_m1qn3 |
---|
11 | option o_gradtest |
---|
12 | //option O_EXTOBJ "../object/ncutil.o" //for aviso files |
---|
13 | |
---|
14 | // name M upt offt dt nbstep |
---|
15 | traj T_float M 1 0 1 jtlag //trajectoire pour r |
---|
16 | traj T_euler M 0 0 1 1 //trajectoire pour u et v |
---|
17 | |
---|
18 | space S_float M nfloat T_float |
---|
19 | space S_euler M nlon nlat T_euler |
---|
20 | space S_eulerlocate M nfloat nlon nlat T_float |
---|
21 | |
---|
22 | modul r_float space S_float input 4 output 2 tempo cout |
---|
23 | modul ur space S_float input 18 output 2 tempo |
---|
24 | modul uinter space S_float noward output 8 tempo |
---|
25 | modul xinter space S_float noward output 8 tempo |
---|
26 | |
---|
27 | modul u space S_euler noward output 1 target //noward veut dire pas de calcul |
---|
28 | modul v space S_euler noward output 1 target |
---|
29 | modul locate space S_eulerlocate input 2 output 1 tempo |
---|
30 | |
---|
31 | exec disp_modul //afficher les modules lors de la ganeration du code |
---|
32 | |
---|
33 | ctin r_float 1..2 from r_float 1..2 i t-1 // i par default est la premier dimension, ici i=1 floater |
---|
34 | ctin r_float 3..4 from ur 1..2 i t // comme c'est un calcul, il depend pas de la valeur initiale |
---|
35 | |
---|
36 | ctin ur 1..8 from uinter 1..8 i t |
---|
37 | ctin ur 9..16 from xinter 1..8 i t |
---|
38 | ctin ur 17..18 from r_float 1..2 i t-1 |
---|
39 | |
---|
40 | ctin locate 1..2 from r_float 1..2 i t-1 |
---|
41 | |
---|
42 | exec disp_ct_in //afficher les connexions |
---|
43 | |
---|
44 | order modinspace S_float |
---|
45 | order YA1 |
---|
46 | ur r_float |
---|
47 | forder |
---|
48 | forder |
---|
49 | |
---|
50 | order modinspace S_eulerlocate |
---|
51 | order YA1 YA2 YA3 |
---|
52 | locate |
---|
53 | forder |
---|
54 | forder |
---|
55 | |
---|
56 | order spaceintraj T_float |
---|
57 | S_eulerlocate S_float |
---|
58 | forder |
---|
59 | |
---|
60 | //insert_fct arg load_aviso |
---|
61 | |
---|
62 | |
---|
63 | |
---|