Skip to content

Commit

Permalink
- remove communicateStatus (interactive simulation)
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24205 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Jan 26, 2015
1 parent 614a89a commit 0ee476a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions SimulationRuntime/c/simulation/simulation_runtime.cpp
Expand Up @@ -806,11 +806,6 @@ int initRuntimeAndSimulation(int argc, char**argv, DATA *data)
sim_communication_port_open = 1;
sim_communication_port_open &= sim_communication_port.create();
sim_communication_port_open &= sim_communication_port.connect("127.0.0.1", port);

if(0 != strcmp("ia", MMC_STRINGDATA(data->simulationInfo.outputFormat)))
{
communicateStatus("Starting", 0.0);
}
}
#endif

Expand All @@ -833,20 +828,6 @@ void SimulationRuntime_printStatus(int sig)
printf("</status>\n");
}

void communicateStatus(const char *phase, double completionPercent /*0.0 to 1.0*/)
{
#ifndef NO_INTERACTIVE_DEPENDENCY
if(sim_communication_port_open)
{
std::stringstream s;
s << (int)(completionPercent*10000) << " " << phase << endl;
std::string str(s.str());
sim_communication_port.send(str);
// cout << str;
}
#endif
}

void communicateMsg(char id, unsigned int size, const char *data)
{
#ifndef NO_INTERACTIVE_DEPENDENCY
Expand Down
1 change: 0 additions & 1 deletion SimulationRuntime/c/simulation/simulation_runtime.h
Expand Up @@ -79,7 +79,6 @@ extern const char* getNameString(const char** ptr);
extern double getSimulationStepSize();
extern void printSimulationStepSize(double in_stepSize, double time);

extern void communicateStatus(const char *phase, double completionPercent);
extern void communicateMsg(char id, unsigned int size, const char *data);

/* the main function of the simulation runtime!
Expand Down

0 comments on commit 0ee476a

Please sign in to comment.