Bad internal unit KIND

492 views
Skip to first unread message

Mohamed LAHDOUR

unread,
Jun 26, 2018, 1:08:01 PM6/26/18
to OpenMC Users Group

Hello - I get the following error when I run mgxs.py


I understand that this is usually an issue with the fortran compiler.  I was wondering if anyone had some advice on troubleshooting this issue.


This is what I did:
1) installed  gfortran-4.8 on Linux;
2) export FC=/usr/bin/gfortran-4.8


Thanks,

Mohamed

Paul Romano

unread,
Jun 26, 2018, 11:14:01 PM6/26/18
to Mohamed LAHDOUR, OpenMC Users Group
Hi Mohamed,

Yes, this kind of error is usually related to the compiler. What Linux distribution/version are you using?

Best,
Paul

--
You received this message because you are subscribed to the Google Groups "OpenMC Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmc-users...@googlegroups.com.
To post to this group, send email to openmc...@googlegroups.com.
Visit this group at https://groups.google.com/group/openmc-users.
For more options, visit https://groups.google.com/d/optout.

Mohamed LAHDOUR

unread,
Jun 27, 2018, 8:17:26 AM6/27/18
to OpenMC Users Group
Hello, Dr Paul. Thank you for your reply.
Our System Configuration Linux Distro : Ubuntu 17.10 (Artful Aardvark) (64 bit)

Thanks and regards,
Mohamed

Paul Romano

unread,
Jun 27, 2018, 10:34:12 AM6/27/18
to mohamed...@gmail.com, openmc...@googlegroups.com
In Ubuntu 17.10, the version of gcc that is installed by default is 7.2, so there is no reason to use an older version (in your case, 4.8). You can do:

export FC=gfortran
export CC=gcc
export CXX=g++

And then run cmake/make as normal.

--
Message has been deleted

Paul Romano

unread,
Aug 7, 2018, 8:08:26 AM8/7/18
to nick...@gmail.com, openmc...@googlegroups.com
One thing you may want to try is to install gcc through conda (if it's not already installed) and see if that helps: conda install gcc.

Best,
Paul

On Fri, Jul 13, 2018 at 2:04 PM Nick Costa <nick...@gmail.com> wrote:
Good afternoon,

I'm having a similar problem. I'm on Ubuntu 18.04 and have g++, gcc, and gfortran all at versions 7.3. I installed OpenMC through Conda Forge.

Samuel Cho

unread,
Sep 10, 2018, 10:11:41 PM9/10/18
to OpenMC Users Group
I also encountered the same issue running the pincell test case after installing on Centos 7. I used gcc/gfortran 4.8.5.  Has this issue been resolved?

Paul Romano

unread,
Sep 13, 2018, 7:22:05 AM9/13/18
to ch...@wfu.edu, nick...@gmail.com, mohamed...@gmail.com, kristina...@gmail.com, openmc...@googlegroups.com
There is a new build of OpenMC on conda that hopefully fixes the "Bad internal unit KIND" error. Try reinstalling/upgrading OpenMC using conda and let me know if it's working or not.

Best regards,
Paul

Sam Cho

unread,
Sep 13, 2018, 7:36:02 AM9/13/18
to Paul Romano, nick...@gmail.com, mohamed...@gmail.com, kristina...@gmail.com, openmc...@googlegroups.com
Dear Paul,

I installed with miniconda just two days ago. I’m afraid the issue is still there.

All the best,
Sam

--

Sam Cho, Ph.D
Associate Professor
Wake Forest University
Departments of Physics & Computer Science
Office: 336.758.3922

Paul Romano

unread,
Sep 13, 2018, 7:38:04 AM9/13/18
to ch...@wfu.edu, nick...@gmail.com, mohamed...@gmail.com, kristina...@gmail.com, openmc...@googlegroups.com
Hi Sam,

The build was updated seven hours ago. Try running 'conda update openmc' to see if the problem you were seeing before still exists.

Thanks,
Paul

Samuel Cho

unread,
Sep 13, 2018, 10:17:19 AM9/13/18
to Nick Costa, Paul Romano, mohamed...@gmail.com, kristina...@gmail.com, openmc...@googlegroups.com
Dear Paul,

The new update worked!

Dear Nick,

Thanks for the tip. I will keep that option in mind if I encounter a similar issue in the future.


Sam Cho, Ph.D
Associate Professor
Wake Forest University
Departments of Physics & Computer Science
Office: 336.758.3922




On Sep 13, 2018, at 9:32 AM, Nick Costa <nick...@gmail.com> wrote:

Hi all,

I avoided the issue by building from Source, if that helps anyone.
Reply all
Reply to author
Forward
0 new messages