Changeset 22210


Ignore:
Timestamp:
11/01/17 15:28:12 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added subdomains

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/bamg.m

    r22080 r22210  
    5858bamg_mesh=bamgmesh();
    5959
     60subdomain_ref = 1;
    6061% Bamg Geometry parameters {{{
    6162if exist(options,'domain'),
     
    102103                bamg_geometry.Vertices=[bamg_geometry.Vertices; [domain(i).x(1:nods) domain(i).y(1:nods) ones(nods,1)]];
    103104                bamg_geometry.Edges   =[bamg_geometry.Edges;    [transpose(count+1:count+nods) transpose([count+2:count+nods count+1])  1.*ones(nods,1)]];
    104                 if i>1, bamg_geometry.SubDomains=[bamg_geometry.SubDomains; 2 count+1 1 1]; end
     105                if i>1, bamg_geometry.SubDomains=[bamg_geometry.SubDomains; 2 count+1 1 subdomain_ref]; subdomain_ref = subdomain_ref+1; end
    105106
    106107                %update counter
Note: See TracChangeset for help on using the changeset viewer.