Example #1
0
 public IEnumerable <int> GetEnrichedDofsOf(XNode node)
 {
     try
     {
         return(enrichedDofs.GetValuesOfRow(node));
     }
     catch (KeyNotFoundException)
     {
         return(new int[] { }); // TODO: It would be better if this method is not called for a non enriched node.
     }
 }
 public IEnumerable <int> GetStandardDofsOf(XNode node)
 {
     // Perhaps it would be more efficient for the client to traverse all (dofType, dofIdx) pairs
     // than assembling the dofIdx collection beforehand.
     try
     {
         return(standardDofs.GetValuesOfRow(node));
     }
     catch (KeyNotFoundException)
     {
         return(new int[] { }); // TODO: It would be better if this method is not called for a non enriched node.
     }
 }