Changeset 1777


Ignore:
Timestamp:
08/19/09 07:35:45 (15 years ago)
Author:
Mathieu Morlighem
Message:

better way to set thermal BC

Location:
issm/trunk/src/m/utils/BC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/BC/SetIceSheetBC.m

    r1754 r1777  
    3838if (length(md.observed_temperature)==md.numberofgrids),
    3939        displaystring(md.debug,'%s',['      boundary conditions for thermal model']);
    40         md.spctemperature=ones(md.numberofgrids,2); %observed temperauture everywhere
    41         md.spctemperature(:,2)=md.observed_temperature; %values of the spcs
     40        md.spctemperature=[md.gridonsurface md.observed_temperature]; %impose observed temperature on surface
    4241        if (length(md.geothermalflux)~=md.numberofgrids),
    4342                md.geothermalflux=50*10^-3*ones(md.numberofgrids,1); %50 mW/m^2
  • issm/trunk/src/m/utils/BC/SetIceShelfBC.m

    r1768 r1777  
    5151if (length(md.observed_temperature)==md.numberofgrids),
    5252        displaystring(md.debug,'%s',['      boundary conditions for thermal model']);
    53         md.spctemperature=ones(md.numberofgrids,2); %surface temperature
    54         md.spctemperature(:,2)=md.observed_temperature; %values of the spcs
     53        md.spctemperature=[md.gridonsurface md.observed_temperature]; %impose observed temperature on surface
    5554        if (length(md.geothermalflux)~=md.numberofgrids),
    5655                md.geothermalflux=zeros(md.numberofgrids,1);
  • issm/trunk/src/m/utils/BC/SetMarineIceSheetBC.m

    r1754 r1777  
    6363if (length(md.observed_temperature)==md.numberofgrids),
    6464        displaystring(md.debug,'%s',['      boundary conditions for thermal model']);
    65         md.spctemperature=ones(md.numberofgrids,2); %surface temperature
    66         md.spctemperature(:,2)=md.observed_temperature; %values of the spcs
     65        md.spctemperature=[md.gridonsurface md.observed_temperature]; %impose observed temperature on surface
    6766        if (length(md.geothermalflux)~=md.numberofgrids),
    6867                md.geothermalflux=zeros(md.numberofgrids,1);
Note: See TracChangeset for help on using the changeset viewer.