mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-27 13:45:27 -04:00
stop when > 90% files allowed
This commit is contained in:
parent
6ad6458e7e
commit
9eba058b4f
1 changed files with 2 additions and 2 deletions
|
|
@ -32,8 +32,8 @@ cat > mpipr-too-many.patch <<EOF
|
|||
+#ifdef DEBUGSHM
|
||||
+ if(nfiles % 1000 == 0) fprintf(stderr," %d: no. open files = %ld maxfiles = %ld\n", g_state.rank, nfiles, maxfiles);
|
||||
+#endif
|
||||
+ long mylimit = (maxfiles/100)*60;
|
||||
+ if(nfiles > (maxfiles/100)*60) {
|
||||
+ long mylimit = (maxfiles/100)*90;
|
||||
+ if(nfiles > (maxfiles/100)*90) {
|
||||
+ printf(" %d: running out of files; files = %ld maxfiles = %ld\n", g_state.rank, nfiles, maxfiles);
|
||||
+#if PAUSE_ON_ERROR
|
||||
+ fprintf(stderr,"%d(%d): too many open files\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue