[Fortran] 纯文本查看 复制代码
IF (Persist) THEN
!Fortran standard recommend to use call execute_command_line to invoke another program
!from within Fortran, the old method was to use call system
!Here by default Fortran standard is used, if you have a compiler does not support
!call execute_command_line, uncomment the following call system
!CALL system('gnuplot -persist '//fileName) !Obsolete method, use with old compilers
CALL system('d:/gnuplot/bin/gnuplot -persist '//fileName) !Fortran standard
ELSE
!CALL system ('gnuplot '//fileName) !Obsolete method, use with old compilers
CALL system ('d:/gnuplot/bin/gnuplot '//fileName)
END IF