source: trunk/src/gcx_dynspg_flt.h @ 49

Last change on this file since 49 was 1, checked in by jbrlod, 13 years ago

Import initial

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1
2/***************************************************************************
3                 module classe gcx_dynspg_flt.h  -  description
4***************************************************************************/
5// Mohamed Berrada
6// locean-ipsl.upmc, Paris, April 20, 2009
7//===========================================================================
8//                          methode forward
9forward (YREAL x1,YREAL x2)
10{ /*    1       from    gcx2            1  i    j         t-1
11        2       from    gcx2            1  i    j         t-2*/
12
13  /* YS1  */
14  /*     A
15         R */ 
16
17  if(Yt<=TU){
18    YS1=0.;
19  }
20  else{
21    if(Yi==0 || Yi==NX-1 || Yj==0 || Yj==NY-1  ){
22      YS1=0.;
23    }
24    else{
25      //YS1 = 2. * x1   - x2;
26      YS1 = 2. * x1   - x2;
27    }
28  }
29  //if(Yi==28 && Yj==3)  xtest("gcx_dynspg_flt",YS1,Yi,Yj,Yk,Yt);
30
31  //
32}
33
34//===========================================================================
35//                         methode  backward
36
37backward (YREAL x1,YREAL x2)
38{
39  YJ1I1=0.;     YJ1I2=0.;
40  if(Yt>TU){ 
41    if(Yi==0 || Yi==NX-1 || Yj==0 || Yj==NY-1  ){
42      YJ1I1=0.;     YJ1I2=0.;
43    }
44    else{
45      YJ1I1=2.;     YJ1I2=-1.;
46    }
47  }
48  // 
49}
50
51//===========================================================================
52//*********************  FIN DU MODULE gcx_dynspg_flt   *********************
53
Note: See TracBrowser for help on using the repository browser.