Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions glvis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@ class Session

public:
Session(bool fix_elem_orient,
bool keep_attr,
bool save_coloring,
string plot_caption,
bool headless)
{
win.data_state.fix_elem_orient = fix_elem_orient;
win.data_state.keep_attr = keep_attr;
win.data_state.save_coloring = save_coloring;
win.plot_caption = plot_caption;
win.headless = headless;
Expand Down Expand Up @@ -157,7 +159,8 @@ class Session
};

void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient,
bool save_coloring, string plot_caption, bool headless = false)
bool keep_attr, bool save_coloring, string plot_caption,
bool headless = false)
{
std::vector<Session> current_sessions;
string data_type;
Expand Down Expand Up @@ -307,7 +310,8 @@ void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient,
while (1);
}

Session new_session(fix_elem_orient, save_coloring, plot_caption, headless);
Session new_session(fix_elem_orient, keep_attr,
save_coloring, plot_caption, headless);

constexpr int tmp_filename_size = 50;
char tmp_file[tmp_filename_size];
Expand Down Expand Up @@ -692,6 +696,7 @@ int main (int argc, char *argv[])
// Run server in new thread
std::thread serverThread{GLVisServer, portnum, save_stream,
win.data_state.fix_elem_orient,
win.data_state.keep_attr,
win.data_state.save_coloring,
win.plot_caption, win.headless};

Expand Down
Loading