CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Odd error when using OpenFOAM compiled with --march=native

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   October 15, 2012, 23:36
Default Odd error when using OpenFOAM compiled with --march=native
New Member
Nishit Joseph
Join Date: Nov 2010
Posts: 29
Rep Power: 9
JLight is on a distinguished road
Hi OF Users!
I recentely compiled the OpenFOAM-2.1.x on two types of processor.

Machine 1
Dell Laptop: Intel i7-2670QM CPU

Machine 2
HPC Cluster: AMD Opteron Processor 2376

Everything seemed fine until I tried the following.

1. Run a case using rhoCentralFoam on Machine 2
2. Download the case to Machine 1
3. Try to continue the run on Machine 1.

I get this error.
Attempt to cast type N4Foam5token8CompoundINS_4ListIdEEEE to type N4Foam5token8CompoundINS_4ListINS_6VectorIdEEEEEE

    From function dynamicCast<To>(From&)
    in file /home/jlight/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/typeInfo.H at line 93.

FOAM aborting
Both were compiled with gcc 4.7.2. Is the error possible because of the compiler option? Or should I start considering re-compiling the OF without the -march=native option.

I used older version of OF (1.7.1 and 2.0.0) without the march=native option and never had this issue.


JLight is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
OpenFOAM compiled with Intel C++ Compiler? af631717 OpenFOAM Running, Solving & CFD 4 June 5, 2009 06:41
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
OpenFOAM Version 1.3 Released OpenFOAM discussion board administrator OpenFOAM Announcements from ESI-OpenCFD 0 March 29, 2006 18:06

All times are GMT -4. The time now is 05:50.