21 #include "sll_memory.h"
22 #include "sll_working_precision.h"
23 #include "sll_maxwell_solvers_macros.h"
41 sll_int32 :: polarization
45 sll_real64 :: eta1_min
46 sll_real64 :: eta1_max
47 sll_real64 :: delta_eta1
48 sll_real64 :: eta2_min
49 sll_real64 :: eta2_max
50 sll_real64 :: delta_eta2
58 character(len=*),
intent(in) :: fname
59 sll_int32,
intent(in) :: n1
60 sll_int32,
intent(in) :: n2
61 sll_real64,
dimension(n1, n2),
intent(in) :: f1
62 sll_real64,
dimension(n1, n2),
intent(in) :: f2
63 sll_int32,
intent(in) :: iplot
64 sll_real64,
intent(in) :: time
67 character(len=4) :: cplot
72 open (80, file=fname//cplot//
".dat")
75 write (80, *) i, j, sngl(f1(i, j)), sngl(f2(i, j))
81 open (90, file=fname//
'plots.gnu', position=
"append")
86 write (90, *)
"set zr[-1.1:1.1]"
89 write (90, *)
"set surf"
90 write (90, *)
"set term x11"
92 write (90, *)
"set title 'Time = ", time,
"'"
93 write (90,
"(a)", advance=
'no')
"splot '"//fname//cplot//
".dat' w lines"
94 write (90,
"(a)", advance=
'no')
",'"//fname//cplot//
".dat' u 1:2:4 w lines"
This module contains common subroutines for Maxwell solvers.
subroutine, public sll_s_plot_two_fields(fname, n1, n2, f1, f2, iplot, time)
write files to visualize 2d fields with gnuplot
Some common numerical utilities.
subroutine, public sll_s_int2string(istep, cstep)
Convert an integer < 9999 to a 4 characters string.
Parent object of all Maxwell solvers.