Skip to content
Open
Changes from all commits
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 @@ -78,11 +78,13 @@ class Session
public:
Session(bool fix_elem_orient,
bool save_coloring,
bool keep_attr,
string plot_caption,
bool headless)
{
win.data_state.fix_elem_orient = fix_elem_orient;
win.data_state.save_coloring = save_coloring;
win.data_state.keep_attr = keep_attr;
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 save_coloring, bool keep_attr, 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, save_coloring,
keep_attr, plot_caption, headless);

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

// Start message loop in main thread
Expand Down
Loading