Changeset 12892


Ignore:
Timestamp:
08/03/12 11:45:52 (13 years ago)
Author:
lemorzad
Message:

update for ispdd method

Location:
issm/trunk-jpl/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/objects/Elements/Penta.cpp

    r12885 r12892  
    713713                        input2->GetInputValue(&TemperaturesLgm[iv][month],gauss,month/12.*yts);
    714714                        input3->GetInputValue(&PrecipitationsPresentday[iv][month],gauss,month/12.*yts);
    715                         monthlyprec[iv][month]=monthlyprec[iv][month]*yts; // convertion to m/yr
     715                        PrecipitationsPresentday[iv][month]=PrecipitationsPresentday[iv][month]/yts; // converion in m/sec
    716716                }
    717717        }
     
    15681568        }
    15691569        #endif
    1570 
    15711570}
    15721571/*}}}*/
  • issm/trunk-jpl/src/m/utils/BC/SetIceSheetBC.m

    r11509 r12892  
    3434
    3535%Create zeros basal melting rate and surface mass balance if not specified
    36 if isnan(md.surfaceforcings.precipitation),
     36if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)),
    3737        md.surfaceforcings.precipitation=zeros(md.mesh.numberofvertices,1);
    3838        disp('      no surfaceforcings.precipitation specified: values set as zero');
    3939end
    40 if isnan(md.surfaceforcings.mass_balance),
     40if isnan(md.surfaceforcings.mass_balance) & (md.surfaceforcings.ispdd==0),
    4141        md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1);
    4242        disp('      no surfaceforcings.mass_balance specified: values set as zero');
  • issm/trunk-jpl/src/m/utils/BC/SetIceShelfBC.m

    r11509 r12892  
    6565
    6666%Create zeros basalforcings and surfaceforcings
    67 if isnan(md.surfaceforcings.precipitation),
     67if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)),
    6868        md.surfaceforcings.precipitation=zeros(md.mesh.numberofvertices,1);
    6969        disp('      no surfaceforcings.precipitation specified: values set as zero');
    7070end
    71 if isnan(md.surfaceforcings.mass_balance),
    72         md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1);
    73         disp('      no surfaceforcings.mass_balance specified: values set as zero');
     71if isnan(md.surfaceforcings.mass_balance) & (md.surfaceforcings.ispdd==0),
     72                md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1);
     73                disp('      no surfaceforcings.mass_balance specified: values set as zero');
    7474end
    7575if isnan(md.basalforcings.melting_rate),
  • issm/trunk-jpl/src/m/utils/BC/SetMarineIceSheetBC.m

    r11509 r12892  
    7676
    7777%Create zeros basalforcings and surfaceforcings
    78 if isnan(md.surfaceforcings.precipitation),
     78if (isnan(md.surfaceforcings.precipitation)& (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)),
    7979        md.surfaceforcings.precipitation=zeros(md.mesh.numberofvertices,1);
    8080        disp('      no surfaceforcings.precipitation specified: values set as zero');
    8181end
    82 if isnan(md.surfaceforcings.mass_balance),
     82if isnan(md.surfaceforcings.mass_balance) & (md.surfaceforcings.ispdd==0),
    8383        md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1);
    8484        disp('      no surfaceforcings.mass_balance specified: values set as zero');
Note: See TracChangeset for help on using the changeset viewer.