Closed kskinoue0612 closed 3 years ago
Currently some iriclib functions needs the file names as arguments. So the code will be like below:
cg_open_f(cgnsname, CG_MODE_MODIFY, fin, ier) cg_iricinit_f(fin) ... do ... iric_write_sol_start_f(cgnsname, ier) iric_write_sol_end_f(cgnsname, ier) cg_iric_flush_f(cgnsname, fin, ier) enddo cg_close_f(fin)
But it is not clean. Lets add functions with more simple interface, so that the code can be like below:
cg_iric_open_f(cgnsname, CG_MODE_MODIFY, fin, ier) ! This calls cg_iricinit_f internally ... do ... iric_write_sol_start2_f(ier) iric_write_sol_end2_f(ier) cg_iric_flush2_f(fin, ier) enddo cg_iric_close_f(fin)
Closed with 3006556406875f9b9f0306970d8c01f3ea0281ea .
Currently some iriclib functions needs the file names as arguments. So the code will be like below:
But it is not clean. Lets add functions with more simple interface, so that the code can be like below: