Skip to content

Commit 32397aa

Browse files
committed
Style.
Signed-off-by: Matthew Emmett <[email protected]>
1 parent 63928ab commit 32397aa

File tree

2 files changed

+3
-60
lines changed

2 files changed

+3
-60
lines changed

src/pfasst-controller.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ namespace pfasst {
1111

1212
// class LevelIter;
1313

14-
template<typename timeT>
14+
template<typename time>
1515
class Controller {
1616
protected:
1717
deque<shared_ptr<ISweeper>> levels;
1818
deque<shared_ptr<ITransfer>> transfer;
1919

2020
int nsteps, niters;
21-
timeT dt;
21+
time dt;
2222

2323
public:
2424

@@ -28,7 +28,7 @@ namespace pfasst {
2828
}
2929
}
3030

31-
void set_duration(timeT dt, int nsteps, int niters) {
31+
void set_duration(time dt, int nsteps, int niters) {
3232
this->dt = dt; this->nsteps = nsteps; this->niters = niters;
3333
}
3434

src/pfasst-vector.hpp

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -81,63 +81,6 @@ namespace pfasst {
8181
return max;
8282
}
8383

84-
#ifdef PFASST_ENABLE_GNUPLOT
85-
void plot(int window, bool wait)
86-
{
87-
if (gp_to == NULL) {
88-
89-
/*
90-
* Fork a new gnuplot process and connect pipes.
91-
*/
92-
93-
int err, pid, to[2], fr[2];
94-
95-
err = pipe(to); GPCHKERR(err, "Unable to create pipe.");
96-
err = pipe(fr); GPCHKERR(err, "Unable to create pipe.");
97-
pid = fork(); GPCHKERR(pid, "Unable to fork gnuplot.");
98-
99-
if (pid) {
100-
close(to[0]); close(fr[1]);
101-
} else {
102-
close(to[1]); close(fr[0]);
103-
dup2(to[0], 0); close(to[0]);
104-
dup2(fr[1], 1); close(fr[1]);
105-
execl("/usr/bin/gnuplot", "gnuplot", NULL);
106-
}
107-
108-
gp_to = fdopen(to[1], "w");
109-
gp_fr = fdopen(fr[0], "r");
110-
111-
}
112-
113-
/*
114-
* Send vector to gnuplot window.
115-
*/
116-
117-
fprintf(gp_to, "set term wxt %d\n", window);
118-
fprintf(gp_to, "plot '-'\n");
119-
for (int i=0; i<this->size(); i++)
120-
fprintf(gp_to, "%lg\n", (*this)[i]);
121-
fprintf(gp_to, "e\n");
122-
123-
if (wait) {
124-
fprintf(gp_to, "set print\n");
125-
fprintf(gp_to, "pause mouse button2 \"===> paused - button 2 in window %d to release\"\n", window);
126-
fprintf(gp_to, "print ''\n");
127-
fprintf(gp_to, "set print '-'\n");
128-
fprintf(gp_to, "print 'hoser!'\n");
129-
}
130-
fflush(gp_to);
131-
132-
if (wait) {
133-
char buf[8];
134-
char *s = fgets(buf, 8, gp_fr);
135-
}
136-
}
137-
#else
138-
void plot(int, bool) const { }
139-
#endif
140-
14184
};
14285

14386
template<typename scalar, typename time>

0 commit comments

Comments
 (0)