#include #include #include #include #include #include #include "xpplim.h" extern int DisplayHeight,DisplayWidth; #define EV_MASK (ButtonPressMask |\ KeyPressMask |\ ExposureMask |\ StructureNotifyMask) #define BUT_MASK (ButtonPressMask |\ KeyPressMask |\ ExposureMask |\ StructureNotifyMask |\ EnterWindowMask |\ LeaveWindowMask) extern Display *display; extern int screen; extern GC gc, small_gc; extern int DCURX,DCURXs,DCURY,DCURYs,CURY_OFFs,CURY_OFF; extern int NUPAR,NODE,NEQ; extern char upar_names[MAXPAR][11],uvar_names[MAXODE][12]; extern Window main_win,info_pop; extern int TORUS; extern double TOR_PERIOD; extern int itor[MAXODE]; struct { Window base,done,cancel; Window w[MAXODE]; } torbox; do_torus_com(int c) { int i; TORUS=0; if(c==0||c==2){ new_float("Period :",&TOR_PERIOD); if(TOR_PERIOD<=0.0){ err_msg("Choose positive period"); return; } if(c==0){ for(i=0;i