Revision: 76132
http://sourceforge.net/p/brlcad/code/76132
Author: starseeker
Date: 2020-06-12 12:54:34 +0000 (Fri, 12 Jun 2020)
Log Message:
-----------
Open the plot file. First state that is able to run the ktank example. Still
need to check the outputs to make sure they match.
Modified Paths:
--------------
brlcad/branches/bioh/src/burst2/burst.cpp
Modified: brlcad/branches/bioh/src/burst2/burst.cpp
===================================================================
--- brlcad/branches/bioh/src/burst2/burst.cpp 2020-06-12 12:47:11 UTC (rev
76131)
+++ brlcad/branches/bioh/src/burst2/burst.cpp 2020-06-12 12:54:34 UTC (rev
76132)
@@ -925,6 +925,14 @@
return BRLCAD_ERROR;
}
+ /* Try to open the file - we want to write output to the file
+ * as it is generated. */
+ s->plotfp = fopen(argv[1], "wb");
+ if (!s->plotfp) {
+ printf("failed to open plot file: %s\n", argv[1]);
+ return BRLCAD_ERROR;
+ }
+
bu_vls_sprintf(&s->plotfile, "%s", argv[1]);
// Echo command (logCmd in original code)
@@ -1288,7 +1296,7 @@
* as they are generated. */
s->shotlnfp = fopen(argv[1], "wb");
if (!s->shotlnfp) {
- printf("failed to open error file: %s\n", argv[1]);
+ printf("failed to open shotline file: %s\n", argv[1]);
ret = BRLCAD_ERROR;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits