Changeset 10398


Ignore:
Timestamp:
11/01/11 10:42:52 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed referencial consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/classes/diagnostic.m

    r10140 r10398  
    113113                        if any(sum(isnan(md.diagnostic.referential),2)==0),
    114114                                pos=find(sum(isnan(md.diagnostic.referential),2)==0);
    115                                 if any(dot(md.diagnostic.referential(pos,1:3),md.diagnostic.referential(pos,4:6))),
    116                                         dot(md.diagnostic.referential(pos,1:3),md.diagnostic.referential(pos,4:6))
    117                                         checkmessage(['model ' md.miscellaneous.name ' has problem with rotated spc. Vectors in diagnostic.referential (colums 1 to 3 and 4 to 6) must be orthogonal']);
    118                                 end
    119                         end
    120                         %CHECK THAT ROTATION IS IN THE (X,Y) PLANE FOR 2D MODELS
    121                         if md.mesh.dimension==2,
    122                                 pos=find(sum(isnan(md.diagnostic.referential),2)==0  & md.flowequation.vertex_equation==2);
    123                                 if any(md.diagnostic.referential(pos,3:5)~=0);
    124                                         checkmessage(['model ' md.miscellaneous.name ' has problem with rotated spc. The rotation should be in the (x,y) plane for 2D diagnostic models (nodeonmacayeal)']);
     115                                if any(abs(dot(md.diagnostic.referential(pos,1:3)',md.diagnostic.referential(pos,4:6)'))>eps),
     116                                        checkmessage(['model ' md.miscellaneous.name ' has problem with referential. Vectors in diagnostic.referential (colums 1 to 3 and 4 to 6) must be orthogonal']);
    125117                                end
    126118                        end
Note: See TracChangeset for help on using the changeset viewer.