Changeset 9359


Ignore:
Timestamp:
08/19/11 18:06:16 (14 years ago)
Author:
Eric.Larour
Message:

For WriteData: better handling of bool upload (encapsulate into an int). a
ismodelselfconsistent: more homogeneous naming conventions for grounding line migration.

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

Legend:

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

    r9267 r9359  
    2525
    2626        %first write length of record
    27         fwrite(fid,1+4,'int');  %1 bool+code
     27        fwrite(fid,4+4,'int');  %1 bool (disguised as an int)+code
    2828
    2929        %write data code:
     
    3131
    3232        %now write integer
    33         fwrite(fid,data,'uint');
     33        fwrite(fid,data,'int');  %send an int, not easy to send a bool
    3434        % }}}
    3535elseif strcmpi(data_type,'Integer'), % {{{
     
    205205        % }}}
    206206else
    207         error('WriteData error message: data type not supported yet!');
     207        error(['WriteData error message: data type: ' num2str(data_type) ' not supported yet! (' EnumToString(enum) ')']);
    208208end
    209209
  • issm/trunk/src/m/model/ismodelselfconsistent.m

    r9290 r9359  
    126126end
    127127%GROUNDING LINE MIGRATION {{{1
    128 checkvalues(md,{'gl_migration'},[NoneEnum() AgressiveMigrationEnum() SoftMigrationEnum()]);
    129 if (md.gl_migration~=NoneEnum),
     128checkvalues(md,{'groundingline_migration'},[NoneEnum() AgressiveMigrationEnum() SoftMigrationEnum()]);
     129if (md.groundingline_migration~=NoneEnum),
    130130        if (md.dim==3 | strcmpi(md.cluster.name,'none')),
    131131                message(['model ' md.name ' requesting grounding line migration, but grounding line module only implemented for 2d models and parallel runs!']);
Note: See TracChangeset for help on using the changeset viewer.