I am using a Fortran subroutine for Abaqus software.
The Fortran compiler is configured as follow based on Linux Os. But I want to use the subroutine through windows OS and unfortunately, I don't know how to write the following configuration on windows Os (how to convert it to Windows format).
compile_fortran= 'ifort -V -c -fPIC -auto -mP2OPT_hpo_vec_divbyzero=F -extend_source -fpp -free -WB -I%I'
For example, I know that "-free" in Linux converts to "/free" in windows. But I don't have any clue about others.
Thanks in advance,
Look up the compiler options in your compiler documentation. For example, for the current OneAPI Fortran compilers, here are the details . Some options apply only to the Windows compiler, some others only to the Linux compiler. The other options may have slight differences.
The Linux compiler and the Windows compiler do not always have corresponding pairs of options. Furthermore, the goal should not be to try to translate the Linux options to their Windows equivalents. It is really the ANSYS for Windows product that should specify which options to use on Windows.
Similarly, shell substitutions and pattern matching symbols from BASH will not work in CMD windows. You have to find the purpose and look for a replacement, if possible.
Just leave out the optimization option that is not recognized. The other option seems to be for specifying a path for include files. It also may not be needed. Try building without it. The Windows compiler has a /I option. Look for INCLUDE statements in the Fortran source file that you are trying to compile, and provide the path to the directory of those files with the /I option.