Changeset 12892
- Timestamp:
- 08/03/12 11:45:52 (13 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/objects/Elements/Penta.cpp
r12885 r12892 713 713 input2->GetInputValue(&TemperaturesLgm[iv][month],gauss,month/12.*yts); 714 714 input3->GetInputValue(&PrecipitationsPresentday[iv][month],gauss,month/12.*yts); 715 monthlyprec[iv][month]=monthlyprec[iv][month]*yts; // convertion to m/yr715 PrecipitationsPresentday[iv][month]=PrecipitationsPresentday[iv][month]/yts; // converion in m/sec 716 716 } 717 717 } … … 1568 1568 } 1569 1569 #endif 1570 1571 1570 } 1572 1571 /*}}}*/ -
issm/trunk-jpl/src/m/utils/BC/SetIceSheetBC.m
r11509 r12892 34 34 35 35 %Create zeros basal melting rate and surface mass balance if not specified 36 if isnan(md.surfaceforcings.precipitation),36 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)), 37 37 md.surfaceforcings.precipitation=zeros(md.mesh.numberofvertices,1); 38 38 disp(' no surfaceforcings.precipitation specified: values set as zero'); 39 39 end 40 if isnan(md.surfaceforcings.mass_balance) ,40 if isnan(md.surfaceforcings.mass_balance) & (md.surfaceforcings.ispdd==0), 41 41 md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1); 42 42 disp(' no surfaceforcings.mass_balance specified: values set as zero'); -
issm/trunk-jpl/src/m/utils/BC/SetIceShelfBC.m
r11509 r12892 65 65 66 66 %Create zeros basalforcings and surfaceforcings 67 if isnan(md.surfaceforcings.precipitation),67 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)), 68 68 md.surfaceforcings.precipitation=zeros(md.mesh.numberofvertices,1); 69 69 disp(' no surfaceforcings.precipitation specified: values set as zero'); 70 70 end 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');71 if 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'); 74 74 end 75 75 if isnan(md.basalforcings.melting_rate), -
issm/trunk-jpl/src/m/utils/BC/SetMarineIceSheetBC.m
r11509 r12892 76 76 77 77 %Create zeros basalforcings and surfaceforcings 78 if isnan(md.surfaceforcings.precipitation),78 if (isnan(md.surfaceforcings.precipitation)& (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)), 79 79 md.surfaceforcings.precipitation=zeros(md.mesh.numberofvertices,1); 80 80 disp(' no surfaceforcings.precipitation specified: values set as zero'); 81 81 end 82 if isnan(md.surfaceforcings.mass_balance) ,82 if isnan(md.surfaceforcings.mass_balance) & (md.surfaceforcings.ispdd==0), 83 83 md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1); 84 84 disp(' no surfaceforcings.mass_balance specified: values set as zero');
Note:
See TracChangeset
for help on using the changeset viewer.