htrdr

Solving radiative transfer in heterogeneous media
git clone git://git.meso-star.fr/htrdr.git
Log | Files | Refs | README | LICENSE

commit d389f704bdcfbd779855c96fae0ca54d001096b5
parent cb78d579a6197178a06e03db2f433daa0298ebfb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  4 Jun 2018 09:35:00 +0200

Fix the how the output stream is created

Diffstat:
Msrc/htrdr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/htrdr.c b/src/htrdr.c @@ -94,7 +94,7 @@ open_output_stream(struct htrdr* htrdr, const struct htrdr_args* args) } else { fd = open(args->output, O_CREAT|O_WRONLY|O_EXCL|O_TRUNC, S_IRUSR|S_IWUSR); if(fd >= 0) { - fp = fdopen(fd, "l"); + fp = fdopen(fd, "w"); if(fp == NULL) { htrdr_log_err(htrdr, "could not open the output file `%s'.\n", args->output);