Changeset 22069
- Timestamp:
- 09/12/17 15:18:30 (8 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/qmu.m
r20690 r22069 65 65 end 66 66 if ~isempty(md.qmu.partition), 67 if numel(md.qmu.partition)~=md.mesh.numberofvertices ,68 md = checkmessage(md,['user supplied partition for qmu analysis should have size md.mesh.numberofvertices x 1 ']);67 if numel(md.qmu.partition)~=md.mesh.numberofvertices & numel(md.qmu.partition)~=md.mesh.numberofelements, 68 md = checkmessage(md,['user supplied partition for qmu analysis should have size md.mesh.numberofvertices x 1 or md.mesh.numberofelements x 1']); 69 69 end 70 70 if min(md.qmu.partition)~=0, -
issm/trunk-jpl/src/m/modules/MeshPartition.m
r20875 r22069 1 function [element_partitioning, node_partitioning] = MeshPartition(md .mesh,numpartitions);1 function [element_partitioning, node_partitioning] = MeshPartition(md,numpartitions) 2 2 %MESHPARTITION - Partition mesh according to the number of areas, using Metis library. 3 3 % -
issm/trunk-jpl/src/m/partition/partitioner.m
r21905 r22069 90 90 elseif strcmpi(package,'linear'), 91 91 92 part=1:1:md.mesh.numberofvertices; 92 if npart==md.mesh.numberofelements | md.qmu.numberofpartitions==md.mesh.numberofelements 93 part=1:1:md.mesh.numberofelements; 94 disp('Linear partitioner requesting partitions on elements'); 95 else 96 part=1:1:md.mesh.numberofvertices; 97 end 93 98 94 99 elseif strcmpi(package,'metis'), 95 100 96 [element_partitioning,part]=MeshPartition(md .mesh,md.qmu.numberofpartitions);101 [element_partitioning,part]=MeshPartition(md,md.qmu.numberofpartitions); 97 102 98 103 else -
issm/trunk-jpl/src/wrappers/MeshPartition/MeshPartition.cpp
r21932 r22069 56 56 FetchData(&numberoflayers,mxGetAssignedField(MESH,0,"numberoflayers")); 57 57 } 58 else if(strcmp(mxGetClassName(MESH),"mesh2d horizontal")==0){58 else if(strcmp(mxGetClassName(MESH),"mesh2d")==0){ 59 59 meshelementtype = TriaEnum; 60 60 numberoflayers=1;
Note:
See TracChangeset
for help on using the changeset viewer.