Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions lib/script_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ int ScriptController::ScriptReadParQuadrature(istream &scr, DataState &state)

int ScriptController::ScriptReadDisplMesh(istream &scr, DataState &state)
{
DataState meshstate;
DataState meshstate = state.CloneEmpty();
string word;

cout << "Script: mesh: " << flush;
Expand Down Expand Up @@ -428,7 +428,7 @@ bool ScriptController::ExecuteScriptCommand()
case Command::DataCollField:
case Command::DataCollQuad:
{
DataState new_state;
DataState new_state = win.data_state.CloneEmpty();

switch (cmd)
{
Expand Down
7 changes: 2 additions & 5 deletions lib/threads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,7 @@ bool communication_thread::execute_one(std::string ident)
// new solution handled by StreamReader
if (StreamReader::SupportsDataType(ident))
{
DataState tmp;
tmp.fix_elem_orient = glvis_command->FixElementOrientations();
DataState tmp = glvis_command->CurrentDataState().CloneEmpty();
StreamReader reader(tmp);
reader.ReadStream(*is[0], ident);

Expand Down Expand Up @@ -1115,9 +1114,7 @@ bool communication_thread::execute_one(std::string ident)
}
while (1);

DataState tmp;
tmp.fix_elem_orient = glvis_command->FixElementOrientations();
tmp.keep_attr = glvis_command->KeepAttrib();
DataState tmp = glvis_command->CurrentDataState().CloneEmpty();
StreamReader reader(tmp);
reader.ReadStreams(is);

Expand Down
3 changes: 1 addition & 2 deletions lib/threads.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ class GLVisCommand
GLVisCommand(Window &win);

// to be used by worker threads
bool KeepAttrib() { return win.data_state.keep_attr; } // may need to sync this
bool FixElementOrientations() { return win.data_state.fix_elem_orient; }
const DataState& CurrentDataState() const { return win.data_state; }

// called by worker threads
int NewMeshAndSolution(DataState &&ss);
Expand Down
Loading