Last change
on this file since 116 was
116,
checked in by smasson, 18 years ago
|
bugfix in triangule + staring point of virtual machine
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
955 bytes
|
Line | |
---|
1 | FUNCTION triangule, maskentree, BASIC = basic, COINMONTE = coinmonte, COINDESCEND = coindescend, _extra = ex |
---|
2 | ; |
---|
3 | compile_opt idl2, strictarrsubs |
---|
4 | ; |
---|
5 | @common |
---|
6 | ; |
---|
7 | szmsk = size(maskentree) |
---|
8 | IF szmsk[0] EQ 0 THEN BEGIN |
---|
9 | nx = jpi |
---|
10 | ny = jpj |
---|
11 | ENDIF ELSE BEGIN |
---|
12 | nx = szmsk[1] |
---|
13 | ny = szmsk[2] |
---|
14 | ENDELSE |
---|
15 | IF nx EQ 1 OR ny EQ 1 THEN return, -1 |
---|
16 | ; |
---|
17 | IF arg_present(coinmonte) THEN coinmonte = 1 |
---|
18 | IF arg_present(coindescend) THEN coindescend = 1 |
---|
19 | ; |
---|
20 | if keyword_set(basic) then $ |
---|
21 | return, triangule_c(maskentree, /BASIC, COINMONTE = coinmonte $ |
---|
22 | , COINDESCEND = coindescend, _extra = ex) |
---|
23 | ; |
---|
24 | if n_elements(key_gridtype) EQ 0 then key_gridtype = 'c' |
---|
25 | if n_elements(maskentree) EQ 0 then maskentree = tmask[*, *, 0] |
---|
26 | case key_gridtype of |
---|
27 | 'e':res = triangule_e(maskentree, _extra = ex) |
---|
28 | 'c':res = triangule_c(maskentree, COINMONTE = coinmonte, COINDESCEND = coindescend, _extra = ex) |
---|
29 | endcase |
---|
30 | return, res |
---|
31 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.