From 1b56ec05924c9a61f9f34987e31d789ad5b36e5f Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 5 Feb 2005 20:20:46 +0000 Subject: [PATCH] simpler Start() function --- utils/solvers/c++/GmshClient.h | 2 +- utils/solvers/c++/solver.cpp | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/utils/solvers/c++/GmshClient.h b/utils/solvers/c++/GmshClient.h index 94acfc3051..8b310752e1 100644 --- a/utils/solvers/c++/GmshClient.h +++ b/utils/solvers/c++/GmshClient.h @@ -152,7 +152,7 @@ class GmshClient { } return -2; // Error: Couldn't connect } - void Start(int pid) + void Start() { char tmp[256]; sprintf(tmp, "%d", getpid()); diff --git a/utils/solvers/c++/solver.cpp b/utils/solvers/c++/solver.cpp index 127be7046a..d438466e6c 100644 --- a/utils/solvers/c++/solver.cpp +++ b/utils/solvers/c++/solver.cpp @@ -1,4 +1,4 @@ -// $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 // @@ -42,12 +42,7 @@ // You will then see a new button labeled "My C++ solver" in Gmsh's // solver menu. -#include <stdlib.h> -#include <stdio.h> -#include <string.h> #include <math.h> -#include <sys/types.h> -#include <unistd.h> #include "GmshClient.h" typedef enum { send_options, run_code } action; @@ -93,7 +88,7 @@ int main(int argc, char *argv[]) exit(1); } - client.Start(getpid()); + client.Start(); if(what_to_do == send_options) { // send the available options for this computation -- GitLab