source: issm/oecreview/Archive/11401-11425/ISSM-11407-11408.diff@ 11515

Last change on this file since 11515 was 11515, checked in by Eric.Larour, 13 years ago

Oecreview up to 11509

File size: 3.7 KB
  • proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/model/collapse.m

     
    2828if ~isnan(md.inversion.vx_obs), md.inversion.vx_obs=project2d(md,md.inversion.vx_obs,md.mesh.numberoflayers); end;
    2929if ~isnan(md.inversion.vy_obs), md.inversion.vy_obs=project2d(md,md.inversion.vy_obs,md.mesh.numberoflayers); end;
    3030if ~isnan(md.inversion.vel_obs), md.inversion.vel_obs=project2d(md,md.inversion.vel_obs,md.mesh.numberoflayers); end;
     31if ~isnan(md.inversion.cost_functions_coefficients), md.inversion.cost_functions_coefficients=project2d(md,md.inversion.cost_functions_coefficients,md.mesh.numberoflayers); end;
     32if ~isnan(md.inversion.min_parameters), md.inversion.min_parameters=project2d(md,md.inversion.min_parameters,md.mesh.numberoflayers); end;
     33if ~isnan(md.inversion.max_parameters), md.inversion.max_parameters=project2d(md,md.inversion.max_parameters,md.mesh.numberoflayers); end;
    3134if ~isnan(md.surfaceforcings.mass_balance),
    3235        md.surfaceforcings.mass_balance=project2d(md,md.surfaceforcings.mass_balance,md.mesh.numberoflayers);
    3336end;
     
    4851%elementstype
    4952if ~isnan(md.flowequation.element_equation)
    5053        md.flowequation.element_equation=project2d(md,md.flowequation.element_equation,1);
     54        md.flowequation.vertex_equation=project2d(md,md.flowequation.vertex_equation,1);
     55        md.flowequation.bordermacayeal=project2d(md,md.flowequation.bordermacayeal,1);
     56        md.flowequation.borderpattyn=project2d(md,md.flowequation.borderpattyn,1);
     57        md.flowequation.borderstokes=project2d(md,md.flowequation.borderstokes,1);
    5158end     
    5259
    5360%boundary conditions
    5461md.diagnostic.spcvx=project2d(md,md.diagnostic.spcvx,md.mesh.numberoflayers);
    5562md.diagnostic.spcvy=project2d(md,md.diagnostic.spcvy,md.mesh.numberoflayers);
    5663md.diagnostic.spcvz=project2d(md,md.diagnostic.spcvz,md.mesh.numberoflayers);
     64md.diagnostic.referential=project2d(md,md.diagnostic.referential,md.mesh.numberoflayers);
    5765md.prognostic.spcthickness=project2d(md,md.prognostic.spcthickness,md.mesh.numberoflayers);
    5866md.thermal.spctemperature=project2d(md,md.thermal.spctemperature,md.mesh.numberoflayers);
    5967
    6068%Extrusion of Neumann BC
    6169if ~isnan(md.diagnostic.icefront),
    62         numberofneumann2d=size(md.diagnostic.icefront,1)/md.mesh.numberoflayers;
     70        numberofneumann2d=size(md.diagnostic.icefront,1)/(md.mesh.numberoflayers-1);
    6371        md.diagnostic.icefront=[md.diagnostic.icefront(1:numberofneumann2d,1:2) md.diagnostic.icefront(1:numberofneumann2d,5:6)]; %Add two columns on the first layer
    6472end
    6573
     
    8795md.mask.vertexonfloatingice=project2d(md,md.mask.vertexonfloatingice,1);
    8896md.mask.elementongroundedice=project2d(md,md.mask.elementongroundedice,1);
    8997md.mask.vertexongroundedice=project2d(md,md.mask.vertexongroundedice,1);
     98md.mask.elementonwater=project2d(md,md.mask.elementonwater,1);
     99md.mask.vertexonwater=project2d(md,md.mask.vertexonwater,1);
    90100
    91101%Initialize with the 2d mesh
    92102md.mesh.x=md.mesh.x2d;
  • proj/ice/larour/issm-uci-clean/trunk-jpl/src/m/model/radarpower.m

     
    1010%      md=radarpower(md)
    1111
    1212%If gdal does not work, uncomment the following line
    13 setenv('LD_LIBRARY_PATH','/proj/ice/larour/issm/trunk/externalpackages/gdal/install/lib/');
     13%setenv('LD_LIBRARY_PATH','/proj/ice/larour/issm/trunk/externalpackages/gdal/install/lib/');
    1414%Parse inputs
    1515if nargin==1,
    1616        options=pairoptions;
Note: See TracBrowser for help on using the repository browser.