icorrected job argument printing
[physik/nlsop.git] / nlsop_client.c
index 6ac9c92..ce42433 100644 (file)
@@ -396,6 +396,7 @@ int main(int argc,char **argv)
 
   /* wait for job */
   event_math(net.connection[0].fd,&event,READ,ADD);
 
   /* wait for job */
   event_math(net.connection[0].fd,&event,READ,ADD);
+  printf("idle, waiting for jobs ...\n");
   event_start(&event,NULL,get_data_and_calc,NULL);
 
   return 1;
   event_start(&event,NULL,get_data_and_calc,NULL);
 
   return 1;
@@ -425,6 +426,8 @@ int get_data_and_calc(t_event *event,void *allineed) {
   gmy_info=&my_info;
   gi=&i;
   dc=0;
   gmy_info=&my_info;
   gi=&i;
   dc=0;
+
+  printf("got a new job ...\n");
   
   /* get info (+data) */
   network_receive(net->connection[0].fd,data,1);
   
   /* get info (+data) */
   network_receive(net->connection[0].fd,data,1);
@@ -455,6 +458,13 @@ int get_data_and_calc(t_event *event,void *allineed) {
     }
   }
 
     }
   }
 
+  printf("starting simulation with following parameters:\n");
+  printf("b = %f | c = %f | s = %f\n",my_info.b,my_info.c,my_info.s);
+  printf("diff every %d steps | diff rate = %f\n",my_info.diff_rate,
+                                                  my_info.dr_ac);
+  printf("current step: %d | total steps: %d\n",c_step,my_info.steps);
+  printf("...\n");
+
   /* care for signals */
   dc=DC_QUIT;
   signal(SIGTERM,send_data);
   /* care for signals */
   dc=DC_QUIT;
   signal(SIGTERM,send_data);