CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   CFX 12.0, user fortran error (https://www.cfd-online.com/Forums/cfx/71053-cfx-12-0-user-fortran-error.html)

songxguan December 14, 2009 03:24

CFX 12.0, user fortran error
 
Hi,

I'm using CFX 12.0 user fortran to solve a problem.
Mu system is 64bit XP, and I have installed
1.Microsoft Windows Server 2003 R2 Platform SDK
2.Microsoft Visual Studio 2005
3.Intel Fortran 10.1.030

the question is when I input cfx5kmext

there's always a error happen.

************************************************** *********
E:\Junction box>cfx5mkext tstat_control.f
C:\Program Files (x86)\Intel\Compiler\Fortran\10.1.030\EM64T\Bin\if ort -iface:cv
f -MD -object:winnt-amd64\\tstat_control.o -c tstat_control.f
Intel(R) Visual Fortran Compiler for applications running on Intel(R) 64, Versio
n 10.1 Build 20090203 Package ID: w_fc_p_10.1.030
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.

fortcom: Warning: Bad # preprocessor line
tstat_control.f(40) : Warning: Bad # preprocessor line
#include "parallel_partitioning.h"
-^
E:\Junction box\tstat_control.f(125): (col. 7) remark: LOOP WAS VECTORIZED.
C:\Program Files (x86)\Intel\Compiler\Fortran\10.1.030\EM64T\Bin\if ort -threads
-dll -exe:.\winnt-amd64\\tstat_control.dll winnt-amd64\\tstat_control.o C:\Progr
am Files\ANSYS Inc\v120\CFX\lib\winnt-amd64\solver-pvm.lib
Intel(R) Visual Fortran Compiler for applications running on Intel(R) 64, Versio
n 10.1 Build 20090203 Package ID: w_fc_p_10.1.030
Copyright (C) 1985-2009 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 8.00.50727.42
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\v120\CFX\lib\winnt-amd64\solver-pvm.lib"
mt.exe /manifest .\winnt-amd64\\tstat_control.dll.manifest /outputresource:.\win
nt-amd64\\tstat_control.dll.;2
Microsoft (R) Manifest Tool version 6.0.4071.0
Copyright (c) Microsoft Corporation 2004.
All rights reserved.
************************************************** ********

I really have no idea that "Bad # preprocessor line #include "parallel_partitioning.h"" is there something wrong?
Could anybody tell me how to fix it?

thanks very much!

joey2007 December 16, 2009 16:56

Simple questions first: Did you use the cfx5launcher command line? Did you start ifortvars.bat before you compile?

songxguan December 17, 2009 01:01

Quote:

Originally Posted by joey2007 (Post 240242)
Simple questions first: Did you use the cfx5launcher command line? Did you start ifortvars.bat before you compile?

Yes, I have started ifortvars.bat already.

I also checked the environment variables, it shows the lib, path and include variables have been set well.

but, when i compile the ! system ("cfx5mkext TStat_Control.F") == 0 or die "cfx5mkext failed"; in CFX-Pre, there's alway a error.

cfdgremlin December 23, 2009 16:24

You need to change the file extension from '.f' to '.F'. The C-preprocessor will only process directives such as '#include' if the file extension '.F'.


All times are GMT -4. The time now is 06:33.