func main() { // options verbose := false show := true // finalise analysis process and catch errors upon exit defer out.End() // start analysis process out.Start("spo754.sim", 0, 0) // all nodes out.Define("all nodes", out.AllNodes()) out.Define("A", out.At{0, 5}) // load results out.LoadResults(nil) // check skipK := true tolK := 1e-17 tolu := 1e-11 tols := 1e-04 var tst testing.T fem.TestingCompareResultsU(&tst, "data/spo754.sim", "spo754.cmp", tolK, tolu, tols, skipK, verbose) // plot out.Splot("Plot") out.Plot("uy", "t", "A", plt.Fmt{C: "r", M: "o"}, -1) out.Draw("", "", show, nil) }
func main() { // options verbose := false // start analysis process out.Start("spo754.sim", 0, 0) // all nodes out.Define("all nodes", out.AllNodes()) out.Define("A", out.At{0, 5}) // load results out.LoadResults(nil) // check skipK := true tolK := 1e-17 tolu := 1e-11 tols := 1e-04 var tst testing.T fem.TestingCompareResultsU(&tst, "spo754.sim", "spo754.cmp", "", tolK, tolu, tols, skipK, verbose) // save plt.SetForPng(0.8, 400, 200) out.Splot("Plot") out.Plot("uy", "t", "A", plt.Fmt{C: "r", M: "o"}, -1) out.Draw("/tmp", "spo754.png", false, nil) }