Changeset 2374


Ignore:
Timestamp:
10/06/09 09:54:39 (16 years ago)
Author:
Mathieu Morlighem
Message:

Added cm_min cm_max, to be checked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/parametercontrol.m

    r2373 r2374  
    2222else
    2323        md.nsteps=100;
     24end
     25
     26%cm_min
     27if exist(options,'cm_min'),
     28        cm_min=getoption(options,'cm_min');
     29        if (length(cm_min)~=1)
     30                md.cm_min=1;
     31        else
     32                md.cm_min=cm_min;
     33        end
     34else
     35        md.cm_min=1;
     36end
     37
     38%cm_max
     39if exist(options,'cm_max'),
     40        cm_max=getoption(options,'cm_max');
     41        if (length(cm_max)~=1)
     42                md.cm_max=180;
     43        else
     44                md.cm_max=cm_max;
     45        end
     46else
     47        md.cm_max=180;
     48end
     49
     50%cm_noisedmp
     51if exist(options,'cm_noisedmp'),
     52        cm_noisedmp=getoption(options,'cm_noisedmp');
     53        if (length(cm_noisedmp)~=1)
     54                md.cm_noisedmp=5*10^-5;
     55        else
     56                md.cm_noisedmp=cm_noisedmp;
     57        end
     58else
     59        md.cm_noisedmp=5*10^-5;
    2460end
    2561
Note: See TracChangeset for help on using the changeset viewer.