Changeset 3658


Ignore:
Timestamp:
05/05/10 15:30:48 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added track support in bamg as well as points outside the domain

Location:
issm/trunk/src/m/classes/public
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/public/bamg.m

    r3359 r3658  
    3939%   - rifts : followed by an ARGUS file that prescribes the rifts
    4040%   - toltip: tolerance to move tip on an existing point of the domain outline
     41%   - tracks: followed by an ARGUS file that prescribes the tracks that the mesh will stick to
     42%   - tol:    if the distance between 2 points of the domain outline is less than tol, they
     43%             will be merged
    4144%
    4245%   Examples:
     
    200203        end
    201204
     205        %Deal with tracks
     206        if exist(options,'tracks'),
     207
     208                %Check that file exists
     209                trackfile=getfieldvalueerr(options,'tracks');
     210                if ~exist(trackfile,'file')
     211                        error(['bamg error message: file ' trackfile ' not found ']);
     212                end
     213                track=expread(trackfile);
     214
     215                for i=1:length(track),
     216
     217                        %Add all points to bamg_geometry
     218                        nods=track(i).nods;
     219                        bamg_geometry.Vertices=[bamg_geometry.Vertices; [track(i).x(1:nods) track(i).y(1:nods) 3*ones(nods,1)]];
     220                        bamg_geometry.Edges=[bamg_geometry.Edges; [transpose(count+1:count+nods-1) transpose([count+2:count+nods])  3*ones(nods-1,1)]];
     221
     222                        %update counter
     223                        count=count+nods;
     224                end
     225        end
     226
    202227        if exist(options,'hVertices'),
    203228                bamg_geometry.hVertices=getfieldvalueerr(options,'hVertices');
     
    206231                end
    207232        end
     233
     234        %process geom
     235        bamg_geometry=processgeometry(bamg_geometry,getfieldvalue(options,'tol',NaN),domain(1));
    208236
    209237elseif isstruct(md.bamg),
  • issm/trunk/src/m/classes/public/queue/QueueRequirements.m

    r3308 r3658  
    1414
    1515        available_queues={'debug','shortq','longq','specialq'};
    16         queue_requirements_time=[60 180 720 1440];
     16        queue_requirements_time=[60*1 60*3 60*17 1440];
    1717        queue_requirements_np=[32 128 256 256];
    1818        queue_requirements_modulo=[1 1 1 1];
Note: See TracChangeset for help on using the changeset viewer.