Changeset 7318


Ignore:
Timestamp:
02/03/11 16:23:24 (14 years ago)
Author:
Eric.Larour
Message:

grounding line migration solution related changes

Location:
issm/trunk/src/m/model
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/ismodelselfconsistent.m

    r7146 r7318  
    116116        error('dim should be either 2 3');
    117117end
    118 checkvalues(md,{'pressureload(:,end)'},[WaterEnum() AirEnum()]);
     118checkvalues(md,{'pressureload(:,end)'},[WaterEnum() AirEnum() IceEnum()]);
    119119%}}}
    120120%NO NAN {{{1
    121121fields={'numberofelements','numberofgrids','x','y','z','drag_coefficient','drag_type','drag_p','drag_q',...
    122122        'rho_ice','rho_water','rheology_B','elementoniceshelf','surface','thickness','bed','g','lowmem','sparsity','nsteps','maxiter',...
    123         'tolx','eps_res','max_nonlinear_iterations','rheology_n','gridonbed','gridonsurface','elementonbed','elementonsurface','deltaH','DeltaH','timeacc','timedec','elementconnectivity'};
     123        'tolx','eps_res','max_nonlinear_iterations','rheology_n','gridonbed','gridonsurface','elementonbed','elementonsurface','deltaH','DeltaH','timeacc','timedec','elementconnectivity','hemisphere'};
    124124checknan(md,fields);
    125125%}}}}
     
    152152        error(['model not consistent: model ' md.name ' violates the equality thickness=surface-bed!']);
    153153end
    154 if md.gl_migration & isnan(md.bathymetry),
    155         error(['model not consistent: model ' md.name ' requesting grounding line migration, buth bathymetry is absent!']);
     154%GROUNDING LINE MIGRATION {{{1
     155checkvalues(md,{'gl_migration'},[NoneEnum() AgressiveMigrationEnum() SoftMigrationEnum()]);
     156if (md.gl_migration~=NoneEnum),
     157        if isnan(md.bathymetry),
     158                error(['model not consistent: model ' md.name ' requesting grounding line migration, buth bathymetry is absent!']);
     159        end
    156160end
    157161
  • issm/trunk/src/m/model/marshall.m

    r7105 r7318  
    163163%grounding line migration:
    164164WriteData(fid,md.gl_migration,'Integer','gl_migration');
    165 if(md.gl_migration),
     165if(md.gl_migration~=NoneEnum),
    166166        WriteData(fid,md.bathymetry,'Mat','bathymetry');
    167167end
  • issm/trunk/src/m/model/process_solve_options.m

    r6569 r7318  
    2626if ~ismember(analysis_type,[DiagnosticSolutionEnum,PrognosticSolutionEnum,ThermalSolutionEnum,...
    2727                SteadystateSolutionEnum,ParametersSolutionEnum,Transient2DSolutionEnum,Transient3DSolutionEnum...
    28                 BalancedthicknessSolutionEnum,BalancedvelocitiesSolutionEnum,BedSlopeSolutionEnum,SurfaceSlopeSolutionEnum]),
     28                BalancedthicknessSolutionEnum,BalancedvelocitiesSolutionEnum,BedSlopeSolutionEnum,SurfaceSlopeSolutionEnum,GroundingLineMigration2DSolutionEnum]),
    2929        error(['process_solve_options error message: analysis_type ' EnumToString(analysis_type) ' not supported yet!']);
    3030end
Note: See TracChangeset for help on using the changeset viewer.