Message Boards Message Boards

0
|
907 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to check why a file is not created?

Posted 1 year ago

Hi, I experience a weird behavior of file creation. I do a series of very similar MATHEMATICA (13.1.0) runs in a batch mode on a supercomputing cluster. In every batch task, I first load (once) the MATHEMATICA package, and subsequently call a series of my programs. Most often no errors occur, but sometimes a result file is not created within my program. This seems to happen only during the execution of the first of my programs on the list in a given batch task. A typical code fragment responsible for file creation is:

points=Flatten[Table[{z,w,N[G[z+az,w+aw],ndigits]},{z,az-az,bz-az,(bz-az)/nz},{w,aw-aw,bw-aw,(bw-aw)/nw}],1];
str=OpenWrite["data__-3_-2.5__1_2.txt"];
Write[str,points];
Close[str];

Is this a correct code or did I do something wrong? Is there any way I could check (within my program) why the file is not created? There are no error messages in the task log file. Is there a possibility that on the first use of the package, MATHEMATICA "does not yet know", for some reason, where to place the file?
Lesław

POSTED BY: Leslaw Bieniasz
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract