示例#1
0
    def __init__(self, field, matrixType="unknown", blockOkay=False):
        """Constructor.

    @param fields Solution fields.
    """
        # If matrix type has not been set, then set it to a value that will work.
        if matrixType == "unknown":
            matrixType = "sbaij"

        #print "MATRIX TYPE: %s, BLOCKOKAY: %s" % (matrixType, blockOkay)
        ModuleJacobian.__init__(self, field, matrixType, blockOkay)
        return
示例#2
0
  def __init__(self, field, matrixType="unknown", blockOkay=False):
    """
    Constructor.

    @param fields Solution fields.
    """
    # If matrix type has not been set, then set it to a value that will work.
    if matrixType == "unknown":
      matrixType = "sbaij"

    #print "MATRIX TYPE: %s, BLOCKOKAY: %s" % (matrixType, blockOkay)
    ModuleJacobian.__init__(self, field, matrixType, blockOkay)
    return
示例#3
0
 def write(self, filename, comm):
   """
   Write Jacobian to binary file.
   """
   ModuleJacobian.write(self, filename, comm.handle)
   return
示例#4
0
 def write(self, filename, comm):
     """Write Jacobian to binary file.
 """
     ModuleJacobian.write(self, filename, comm.handle)
     return