Fluids

Fluids

Fortran compiler

    • ISAR CHARMCHI
      Subscriber

      Hi, 

      What is the recommended fortran compiler for ANSYS CFX 221 and 222. I am using Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on IA-32, Version 2021.8.0. I am trying to run tutorial 19 to get figure out the copiler but When I want to compile and create shared library I get the below error:

       

      C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\intel64\ifort -iface:cvf -MD -check:uninit -warn:declarations -Qdiag-error:6717 -O2 -Qfp-speculation:safe -fp:precise -fp:source -Qimf-arch-consistency:true -Qno-opt-dynamic-align -fpe:0 -align:dcommons,sequence -real_size:32 -integer_size:32 -fpp -include:"C:\Program Files\ANSYS Inc\v222\CFX\include" -object:winnt-amd64\TStat_Control.o -c TStat_Control.F
      Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on IA-32, Version 2021.8.0 Build 20221119_000000
      Copyright (C) 1985-2022 Intel Corporation.  All rights reserved.

      ifort: command line warning #10212: /fp:precise evaluates in source precision with Fortran.
      ifort: command line warning #10434: option '/real_size' use with underscore is deprecated; use '/real-size' instead
      ifort: command line warning #10434: option '/integer_size' use with underscore is deprecated; use '/integer-size' instead
      C:\Program Files (x86)\Intel\oneAPI\compiler\latest\windows\bin\intel64\ifort -threads -dll -exe:.\winnt-amd64\TStat_Control.dll winnt-amd64\TStat_Control.o C:\Program Files\ANSYS Inc\v222\CFX\lib\winnt-amd64\solver-mpi.lib
      Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on IA-32, Version 2021.8.0 Build 20221119_000000
      Copyright (C) 1985-2022 Intel Corporation.  All rights reserved.

      ifort: command line warning #10161: unrecognized source type 'winnt-amd64\TStat_Control.o'; object file assumed
      Microsoft (R) Incremental Linker Version 14.29.30136.0
      Copyright (C) Microsoft Corporation.  All rights reserved.

      -out:.\winnt-amd64\TStat_Control.dll
      -dll
      -implib:.\winnt-amd64\TStat_Control.lib
      winnt-amd64\TStat_Control.o
      "C:\Program Files\ANSYS Inc\v222\CFX\lib\winnt-amd64\solver-mpi.lib"
         Creating library .\winnt-amd64\TStat_Control.lib and object .\winnt-amd64\TStat_Control.exp
      TStat_Control.o : error LNK2019: unresolved external symbol _SET_A_0@8 referenced in function _AC_ON
      C:\Program Files\ANSYS Inc\v222\CFX\lib\winnt-amd64\solver-mpi.lib : warning LNK4272: library machine type 'x64' conflicts with target machine type 'x86'
      .\winnt-amd64\TStat_Control.dll : fatal error LNK1120: 1 unresolved externals
      An error has occurred in cfx5mkext:

      C:\Program Files
      (x86)\Intel\oneAPI\compiler\latest\windows\bin\intel64\ifort exited with
      return code 96.

    • DrAmine
      Ansys Employee

      Please Check this Help WebSite after you select the release you are now using: 2.2. Compiler Requirements for Windows Systems (ansys.com).

    • ISAR CHARMCHI
      Subscriber

      I checked the link and IBM website basically there is no way to have the compatible fortran compiler with CFX as the version that CFX is based on is not available to download anymore. Do you have any solution to this problem?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.