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:
1bd9e2d
)
corrected save file open call
author
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Mon, 10 Sep 2007 13:41:32 +0000
(15:41 +0200)
committer
hackbard
<hackbard@sage.physik.uni-augsburg.de>
Mon, 10 Sep 2007 13:41:32 +0000
(15:41 +0200)
moldyn.c
patch
|
blob
|
history
diff --git
a/moldyn.c
b/moldyn.c
index
a310e91
..
e961ca2
100644
(file)
--- a/
moldyn.c
+++ b/
moldyn.c
@@
-1464,7
+1464,8
@@
return 0;
if(!(i%s)) {
snprintf(dir,128,"%s/s-%07.f.save",
moldyn->vlsdir,moldyn->time);
if(!(i%s)) {
snprintf(dir,128,"%s/s-%07.f.save",
moldyn->vlsdir,moldyn->time);
- fd=open(dir,O_WRONLY|O_TRUNC|O_CREAT);
+ fd=open(dir,O_WRONLY|O_TRUNC|O_CREAT,
+ S_IRUSR|S_IWUSR);
if(fd<0) perror("[moldyn] save fd open");
else {
write(fd,moldyn,sizeof(t_moldyn));
if(fd<0) perror("[moldyn] save fd open");
else {
write(fd,moldyn,sizeof(t_moldyn));
@@
-1923,6
+1924,17
@@
int moldyn_bc_check(t_moldyn *moldyn) {
return 0;
}
return 0;
}
+/*
+ * restore function
+ */
+
+int moldyn_load(t_moldyn *moldyn) {
+
+ // later ...
+
+ return 0;
+}
+
/*
* post processing functions
*/
/*
* post processing functions
*/
@@
-1945,3
+1957,11
@@
int get_line(int fd,char *line,int max) {
}
}
}
}
+int analyze_bonds(t_moldyn *moldyn) {
+
+
+
+
+ return 0;
+}
+