Commit 9c25264a by Peter Binde

Update Pos_Formulation.cpp: Writing NX binary unv files requires read AND write and fopen64

parent be4c9d1e
Pipeline #180 passed with stage
in 40 seconds
......@@ -414,12 +414,23 @@ void Pos_Formulation(struct Formulation *Formulation_P,
}
}
else {
if((PostStream = FOpen(PostFileName, Flag_BIN ? "ab" : "a")))
Message::Direct(4, " >> '%s'", PostFileName) ;
else{
Message::Error("Unable to open file '%s'", PostFileName) ;
PostStream = stdout ;
}
//Peter Binde: Writing NX binary unv files requires read AND write and fopen64
if(PostSubOperation_P->Format == FORMAT_NXUNV){
if((PostStream = fopen64(PostFileName, Flag_BIN ? "r+b" : "a")))
Message::Direct(4, " >> '%s'", PostFileName) ;
else{
Message::Error("Unable to open file '%s'", PostFileName) ;
PostStream = stdout ;
}
}
else{
if((PostStream = FOpen(PostFileName, Flag_BIN ? "ab" : "a")))
Message::Direct(4, " >> '%s'", PostFileName) ;
else{
Message::Error("Unable to open file '%s'", PostFileName) ;
PostStream = stdout ;
}
}
}
}
else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment