diff --git a/utils/solvers/c++/GmshClient.h b/utils/solvers/c++/GmshClient.h index 94acfc305155e5465f2ef3b0747835429831a936..8b310752e122cb440bf668863635bb71418602c2 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 127be7046a650a8462eff7867f4ee1e335faaa89..d438466e6cb4abf441655c30bfcbb77d5d09d5de 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