Commit ec824efb authored by Edward Andò's avatar Edward Andò
Browse files

[skip-ci] ddic replace nans also in centres of mass

parent dd5917ba
Pipeline #64858 skipped
......@@ -277,6 +277,8 @@ dispFieldNoNans = dispField.copy()
dispFieldNoNans[numpy.isnan(dispFieldNoNans)] = 0.0
magDispNoNans = magDisp.copy()
magDispNoNans[numpy.isnan(magDispNoNans)] = 0.0
centresOfMassNoNans = centresOfMass.copy()
centresOfMassNoNans[numpy.isnan(centresOfMassNoNans)] = 0.0
VTKglyphDict = {'displacements': dispFieldNoNans,
'mag(displacements)': magDispNoNans,
......@@ -310,4 +312,4 @@ VTKglyphDict = {'displacements': dispFieldNoNans,
#"Fxz\tFxy\tFxx\t" +
#"PSCC\terror\titerations\treturnStatus\tdeltaPhiNorm\tLabelDilate")
spam.helpers.writeGlyphsVTK(centresOfMass, VTKglyphDict, fileName=args.OUT_DIR + "/" + args.PREFIX + "-ddic.vtk")
spam.helpers.writeGlyphsVTK(centresOfMassNoNans, VTKglyphDict, fileName=args.OUT_DIR + "/" + args.PREFIX + "-ddic.vtk")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment