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

#define MAXSOLVERS

parent 0af80377
No related branches found
No related tags found
No related merge requests found
// $Id: Callbacks.cpp,v 1.120 2002-05-01 21:11:53 geuzaine Exp $ // $Id: Callbacks.cpp,v 1.121 2002-05-07 05:32:20 geuzaine Exp $
#include <sys/types.h> #include <sys/types.h>
#include <signal.h> #include <signal.h>
...@@ -1699,8 +1699,13 @@ void mesh_define_transfinite_volume_cb(CALLBACK_ARGS){ ...@@ -1699,8 +1699,13 @@ void mesh_define_transfinite_volume_cb(CALLBACK_ARGS){
void solver_cb(CALLBACK_ARGS){ void solver_cb(CALLBACK_ARGS){
char file[256], tmp[256]; char file[256], tmp[256];
static int first[5]={1,1,1,1,1}; static int init=0, first[MAXSOLVERS];
int num = (int)data; int i, num = (int)data;
if(!init){
for(i=0; i<MAXSOLVERS; i++) first[i] = 1;
init = 1;
}
if(first[num]){ if(first[num]){
first[num] = 0; first[num] = 0;
......
// $Id: Solvers.cpp,v 1.9 2002-01-03 10:25:06 geuzaine Exp $ // $Id: Solvers.cpp,v 1.10 2002-05-07 05:32:20 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "GmshClient.h" #include "GmshClient.h"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
extern Context_T CTX; extern Context_T CTX;
extern GUI *WID; extern GUI *WID;
SolverInfo SINFO[5] ; SolverInfo SINFO[MAXSOLVERS] ;
int Solver(int num, char *args){ int Solver(int num, char *args){
int sock, type, stop=0, i, j, n; int sock, type, stop=0, i, j, n;
......
#ifndef _SOLVERS_H_ #ifndef _SOLVERS_H_
#define _SOLVERS_H_ #define _SOLVERS_H_
#define MAXSOLVERS 5
typedef struct{ typedef struct{
char name[256], extension[32], executable_name[256]; char name[256], extension[32], executable_name[256];
char mesh_name[256], mesh_command[256]; char mesh_name[256], mesh_command[256];
char button_name[5][32], button_command[5][256]; char button_name[MAXSOLVERS][32], button_command[MAXSOLVERS][256];
char option_name[5][256], option_command[256]; char option_name[MAXSOLVERS][256], option_command[256];
char option[5][100][256]; char option[MAXSOLVERS][100][256];
int nboptions, nbval[5]; int nboptions, nbval[MAXSOLVERS];
char *help; char *help;
int client_server, popup_messages, merge_views; int client_server, popup_messages, merge_views;
int pid; int pid;
} SolverInfo ; } SolverInfo ;
extern SolverInfo SINFO[5] ; extern SolverInfo SINFO[MAXSOLVERS] ;
int Solver(int num, char *args); int Solver(int num, char *args);
......
$Date: 2002-04-24 00:22:54 $ $Date: 2002-05-07 05:32:20 $
New in 1.35: Graphical user interface upgraded to FLTK 1.1 (tooltips, New in 1.35: Graphical user interface upgraded to FLTK 1.1 (tooltips,
new file chooser with multiple selection, full keyboard navigation, new file chooser with multiple selection, full keyboard navigation,
etc.); colors can be now be directly assigned to mesh entities; cut/paste of messages, etc.); colors can be now be directly assigned to
initial tensor visaulization; new keyboard animation (righ/left arrow mesh entities; initial tensor visaulization; new keyboard animation
for time steps; up/down arrow for view cycling); new VRML output (righ/left arrow for time steps; up/down arrow for view cycling); new
format for surface meshes; small bug fixes; VRML output format for surface meshes; small bug fixes;
New in 1.34: Improved surface mesh of non-plane surfaces; fixed New in 1.34: Improved surface mesh of non-plane surfaces; fixed
orientation of elements in 2D anisotropic algorithm; minor user orientation of elements in 2D anisotropic algorithm; minor user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment