CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   CFX 17.2 User Fortran (https://www.cfd-online.com/Forums/cfx/183457-cfx-17-2-user-fortran.html)

hmdl February 4, 2017 15:00

CFX 17.2 User Fortran
 
Hello all,

after compiling the fortran routines I get the following errors on run:
Any help understanding the errors is appreciated. I should note that I have already rebuild the libraries using cfx5mkext.

Code:

+--------------------------------------------------------------------+
 | ERROR #001100279 has occurred in subroutine ErrAction.            |
 | Message:                                                          |
 | Dependency on C:\Program Files\ANSYS Inc\v172\CFX\bin\winnt-amd64- |
 | \solver-impi.exe which is different from the current solver execu- |
 | table C:\Program Files\ANSYS Inc\v172\CFX\bin\winnt-amd64\solver-- |
 | mpi.exe                                                            |
 |                                                                    |
 |                                                                    |
 +--------------------------------------------------------------------+
 
 +--------------------------------------------------------------------+
 | ERROR #001100279 has occurred in subroutine ErrAction.            |
 | Message:                                                          |
 | One or more user library(s) has been linked  against another solv- |
 | er executable and is incompatible with the current solver. Any su- |
 | ch libaries should be rebuilt from source using cfx5mkext.        |
 |                                                                    |
 |                                                                    |
 |                                                                    |
 +--------------------------------------------------------------------+


Opaque February 6, 2017 15:41

Would you mind stating which "start method" did you use ? Platform MPI, or Intel MPI ?

hmdl February 7, 2017 08:39

Actually neither, I've been trying to get it up on serial so far. Which is weird because it's complaining about solver-impi and solver-mpi

hmdl February 7, 2017 13:42

I could resolve this issue by copying the cfx5mkext.ccl file into the directory where the .F files are and changing in the ccl file the solver-impi with solver-mpi in the following section:

COMPILER: intel
ATTRS: archfort
cc = cl
fc = ifort
# ld = link
# ext link use ld = true
cxx = cl
ext build cflags = -MD
ext build fflags = -Qvec- -iface:cvf -MD
ext link ldflags = -threads -dll
ext link lib5files = solver-mpi.lib
cppincflag f = -include:
cppflags f = -fpp
fc outopt obj = -object:
fc outopt exec = -exe:
cc outopt obj = -Fo
ext lib suffix = dll
ext lib pattern = %s.dll
END
ATTRS: single
ext build fflags = -real_size:32
END
ATTRS: double
cppflags = -DDOUBLE_PRECISION
ext build fflags = -real_size:64
END
ATTRS: int32
ext build fflags = -integer_size:32
END
ATTRS: int64
ext build fflags = -integer_size:64
END
END
END

Opaque February 7, 2017 14:26

Strange.. That is the setting for R17.1, but for R17.2 and the new R18.0 I can see "solver-mpi.exe"

It seems you compiled vs the solver-impi.exe, but I may be mistaken.

hmdl February 9, 2017 05:31

You're right, I have in 17.2 both solver.mpi.exe and solver-impi.exe. I don't understand why it causes a problem but changing the setting in the cfx5mkext.ccl file according to the complaint of the solver error solved the problem.


All times are GMT -4. The time now is 10:02.