Changeset 13076
- Timestamp:
- 08/17/12 10:53:42 (13 years ago)
- Location:
- issm/trunk-jpl/src/m/boundaryconditions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/boundaryconditions/SetIceSheetBC.m
r12892 r13076 34 34 35 35 %Create zeros basal melting rate and surface mass balance if not specified 36 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)),36 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1)), 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) & (md.surfaceforcings.ispdd==0),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/boundaryconditions/SetIceShelfBC.m
r12892 r13076 65 65 66 66 %Create zeros basalforcings and surfaceforcings 67 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)),67 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1)), 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) & (md.surfaceforcings.ispdd==0),71 if (isnan(md.surfaceforcings.mass_balance) & (md.surfaceforcings.ispdd==0)), 72 72 md.surfaceforcings.mass_balance=zeros(md.mesh.numberofvertices,1); 73 73 disp(' no surfaceforcings.mass_balance specified: values set as zero'); -
issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.py
r13032 r13076 69 69 70 70 #Create zeros basalforcings and surfaceforcings 71 if numpy.all(numpy.isnan(md.surfaceforcings.precipitation)) :71 if numpy.all(numpy.isnan(md.surfaceforcings.precipitation)) and (md.surfaceforcings.ispdd==1): 72 72 md.surfaceforcings.precipitation=numpy.zeros(md.mesh.numberofvertices) 73 73 print ' no surfaceforcings.precipitation specified: values set as zero' 74 if numpy.all(numpy.isnan(md.surfaceforcings.mass_balance)) :74 if numpy.all(numpy.isnan(md.surfaceforcings.mass_balance)) and (md.surfaceforcings.ispdd==0): 75 75 md.surfaceforcings.mass_balance=numpy.zeros(md.mesh.numberofvertices) 76 76 print ' no surfaceforcings.mass_balance specified: values set as zero' -
issm/trunk-jpl/src/m/boundaryconditions/SetMarineIceSheetBC.m
r12892 r13076 76 76 77 77 %Create zeros basalforcings and surfaceforcings 78 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1) & (md.surfaceforcings.ispdd==0)),78 if (isnan(md.surfaceforcings.precipitation) & (md.surfaceforcings.ispdd==1)), 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) & (md.surfaceforcings.ispdd==0),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.