projects
/
physik
/
posic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d1c8623
)
correction of fatal errors!
author
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Fri, 16 May 2008 08:44:30 +0000
(10:44 +0200)
committer
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Fri, 16 May 2008 08:44:30 +0000
(10:44 +0200)
mdrun.c
patch
|
blob
|
history
diff --git
a/mdrun.c
b/mdrun.c
index
d99bd7a
..
29d3160
100644
(file)
--- a/
mdrun.c
+++ b/
mdrun.c
@@
-879,10
+879,18
@@
int main(int argc,char **argv) {
/* prepare simulation */
/* prepare simulation */
- moldyn_init(&moldyn,argc,argv);
-
- if(mdrun.continue_file)
+ if(mdrun.continue_file[0]) {
+ // read the save file
moldyn_read_save_file(&moldyn,mdrun.continue_file);
moldyn_read_save_file(&moldyn,mdrun.continue_file);
+ // manualaadjusting some stuff
+ moldyn.argc=argc;
+ moldyn.args=argv;
+ rand_init(&(moldyn.random),NULL,1);
+ moldyn.random.status|=RAND_STAT_VERBOSE;
+ }
+ else {
+ moldyn_init(&moldyn,argc,argv);
+ }
if(set_int_alg(&moldyn,mdrun.intalgo)<0)
return -1;
if(set_int_alg(&moldyn,mdrun.intalgo)<0)
return -1;
@@
-915,7
+923,7
@@
int main(int argc,char **argv) {
}
/* if it is a continue run, reset schedule and skip lattice init */
}
/* if it is a continue run, reset schedule and skip lattice init */
- if(mdrun.continue_file) {
+ if(mdrun.continue_file
[0]
) {
memset(&(moldyn.schedule),0,sizeof(t_moldyn_schedule));
goto addsched;
}
memset(&(moldyn.schedule),0,sizeof(t_moldyn_schedule));
goto addsched;
}