Commit ecc43e1b authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent 24143e6a
Pipeline #11853 passed with stage
in 10 minutes and 17 seconds
from nifty import *
import plotly.offline as pl
import plotly.graph_objs as go
#import plotly.offline as pl
#import plotly.graph_objs as go
from mpi4py import MPI
comm = MPI.COMM_WORLD
......@@ -50,7 +50,7 @@ if __name__ == "__main__":
d_data = d.val.get_full_data().real
m_data = m.val.get_full_data().real
ss_data = ss.val.get_full_data().real
if rank == 0:
pl.plot([go.Heatmap(z=d_data)], filename='data.html')
pl.plot([go.Heatmap(z=m_data)], filename='map.html')
pl.plot([go.Heatmap(z=ss_data)], filename='map_orig.html')
# if rank == 0:
# pl.plot([go.Heatmap(z=d_data)], filename='data.html')
# pl.plot([go.Heatmap(z=m_data)], filename='map.html')
# pl.plot([go.Heatmap(z=ss_data)], filename='map_orig.html')
......@@ -43,6 +43,7 @@ def _harmonic_type(itp):
elif otp==np.float32:
otp=np.complex64
return otp
def _get_rtol(tp):
if (tp==np.float64) or (tp==np.complex128):
return 1e-10
......
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