Changeset 22210
- Timestamp:
- 11/01/17 15:28:12 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/mesh/bamg.m
r22080 r22210 58 58 bamg_mesh=bamgmesh(); 59 59 60 subdomain_ref = 1; 60 61 % Bamg Geometry parameters {{{ 61 62 if exist(options,'domain'), … … 102 103 bamg_geometry.Vertices=[bamg_geometry.Vertices; [domain(i).x(1:nods) domain(i).y(1:nods) ones(nods,1)]]; 103 104 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]; end105 if i>1, bamg_geometry.SubDomains=[bamg_geometry.SubDomains; 2 count+1 1 subdomain_ref]; subdomain_ref = subdomain_ref+1; end 105 106 106 107 %update counter
Note:
See TracChangeset
for help on using the changeset viewer.