Skip to content
Snippets Groups Projects
Commit 1b56ec05 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

simpler Start() function
parent d866ef15
No related branches found
No related tags found
No related merge requests found
...@@ -152,7 +152,7 @@ class GmshClient { ...@@ -152,7 +152,7 @@ class GmshClient {
} }
return -2; // Error: Couldn't connect return -2; // Error: Couldn't connect
} }
void Start(int pid) void Start()
{ {
char tmp[256]; char tmp[256];
sprintf(tmp, "%d", getpid()); sprintf(tmp, "%d", getpid());
......
// $Id: solver.cpp,v 1.3 2005-01-17 18:52:49 geuzaine Exp $ // $Id: solver.cpp,v 1.4 2005-02-05 20:20:46 geuzaine Exp $
// //
// Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
// //
...@@ -42,12 +42,7 @@ ...@@ -42,12 +42,7 @@
// You will then see a new button labeled "My C++ solver" in Gmsh's // You will then see a new button labeled "My C++ solver" in Gmsh's
// solver menu. // solver menu.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h> #include <math.h>
#include <sys/types.h>
#include <unistd.h>
#include "GmshClient.h" #include "GmshClient.h"
typedef enum { send_options, run_code } action; typedef enum { send_options, run_code } action;
...@@ -93,7 +88,7 @@ int main(int argc, char *argv[]) ...@@ -93,7 +88,7 @@ int main(int argc, char *argv[])
exit(1); exit(1);
} }
client.Start(getpid()); client.Start();
if(what_to_do == send_options) { if(what_to_do == send_options) {
// send the available options for this computation // send the available options for this computation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment