CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CFX 12.0, user fortran error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2009, 03:24
Default CFX 12.0, user fortran error
  #1
New Member
 
Xue-Guan Song
Join Date: Mar 2009
Location: Busan, Korea
Posts: 14
Rep Power: 17
songxguan is on a distinguished road
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!
songxguan is offline   Reply With Quote

Old   December 16, 2009, 16:56
Default
  #2
Senior Member
 
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17
joey2007 is on a distinguished road
Simple questions first: Did you use the cfx5launcher command line? Did you start ifortvars.bat before you compile?
joey2007 is offline   Reply With Quote

Old   December 17, 2009, 01:01
Default
  #3
New Member
 
Xue-Guan Song
Join Date: Mar 2009
Location: Busan, Korea
Posts: 14
Rep Power: 17
songxguan is on a distinguished road
Quote:
Originally Posted by joey2007 View Post
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.
songxguan is offline   Reply With Quote

Old   December 23, 2009, 16:24
Default
  #4
Member
 
Join Date: Dec 2009
Posts: 44
Rep Power: 16
cfdgremlin is on a distinguished road
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'.
cfdgremlin is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! alban Fluent UDF and Scheme Programming 2 June 8, 2010 19:54
CFX 12.0 remeshing error songxguan CFX 1 November 26, 2009 07:14
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 06:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 15:26.