projects
/
physik
/
nlsop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9a7f27
)
more printfs to client, debug printfs for server
author
hackbard
<hackbard>
Mon, 8 Nov 2004 09:11:25 +0000
(09:11 +0000)
committer
hackbard
<hackbard>
Mon, 8 Nov 2004 09:11:25 +0000
(09:11 +0000)
nlsop_client.c
patch
|
blob
|
history
nlsop_server.c
patch
|
blob
|
history
diff --git
a/nlsop_client.c
b/nlsop_client.c
index
be24dc9
..
f5d7b84
100644
(file)
--- a/
nlsop_client.c
+++ b/
nlsop_client.c
@@
-458,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"my_info.steps,c_step);
+ printf("...\n");
+
/* care for signals */
dc=DC_QUIT;
signal(SIGTERM,send_data);
/* care for signals */
dc=DC_QUIT;
signal(SIGTERM,send_data);
diff --git
a/nlsop_server.c
b/nlsop_server.c
index
085e289
..
ea45791
100644
(file)
--- a/
nlsop_server.c
+++ b/
nlsop_server.c
@@
-207,6
+207,9
@@
int add_job(t_net *net,int chan,t_list *jl) {
job.step=0;
list_add_element(jl,&job,sizeof(t_job));
job.step=0;
list_add_element(jl,&job,sizeof(t_job));
+
+ printf("job added: b=%f | c=%f | s=%f ...\n",
+ job.info.b,job.info.c,job.info.s);
return 1;
}
return 1;
}
@@
-337,6
+340,8
@@
int distribute_jobs(t_event *event,void *allineed) {
g_list=(t_list *)addr[2];
job=(t_list *)addr[3];
g_list=(t_list *)addr[2];
job=(t_list *)addr[3];
+ printf("d: distributing jobs ...\n");
+
count_j=list_count(job);
count_c=list_count(c_list);
count_j=list_count(job);
count_c=list_count(c_list);