os.system("gnuplot -e \"set terminal pdf; set output '"+iter_basename+".pdf'; plot '"+iter_basename+".dat' u 1:2 w l title 'psi_c_int'; plot '' u 1:3 w l title 'psi_m_int'; plot '' u 1:4 w l title 'psi_int'; plot '' u 1:5 w l title 'relax_res_norm'; plot '' u 1:6 w l title 'relax_res_dU'\"")
os.system("gnuplot -e \"set terminal pdf; set output '"+iter_basename+".pdf'; plot '"+iter_basename+".dat' u 1:2 w p title 'psi_int'\"")
relax=relax_list[numpy.argmin(relax_vals)]
print_sci(tab,"relax",relax)
else:
assert (0),"relax_type must be \"constant\", \"aitken\" or \"manual\". Aborting."
assert (0),"relax_type must be \"constant\", \"aitken\" or \"gss\". Aborting."
# solution update
U.vector().axpy(relax,dU.vector())
...
...
@@ -504,7 +542,7 @@ def fedic(
file_pvd_frame<<(U,float(k_iter+1))
# displacement error
dU_norm=dU.vector().norm("l2")
dU_norm=abs(relax)*dU.vector().norm("l2")
if (dU_norm==0.)and(Uold_norm==0.)and(U_norm==0.):