Commits

Matt Knepley  committed 08297a5

HDF5: Fixed Xdmf script

  • Participants
  • Parent commits f2fa757

Comments (0)

Files changed (1)

File bin/pythonscripts/petsc_gen_xdmf.py

 
   def writeField(self, fp, numSteps, timestep, cellDim, spaceDim, name, f, domain):
     ctypes = ['tensor', 'matrix']
-    if spaceDim == 2 or cellDim != spaceDim: ctypes.append['vector']
+    if spaceDim == 2 or cellDim != spaceDim: ctypes.append('vector')
     if f[1].attrs['vector_field_type'] in ctypes:
       self.writeFieldComponents(fp, numSteps, timestep, spaceDim, name, f, domain)
     else: