OpenMC compilation

Hi,

I’m very interesting for assessing openMC in R&D nuclear physics action, but I have some difficulties to compile openMC.

I’m trying to do such on a linux 64 bits station not conected to web (so i retrieved the fox package needed for the compilation as far I understand).

I downloaded the openMC-master package and fox-master associated to (from the mit-crpg page) .

I have a gcc 4.8.2 and hdf5 1.8.15 compile with.

I assume to do the step of compilation till the make (cf join file debug.openmc) and (for information debug.fox seems ok).

At final, I think I have a fortran error but as I’m not a specialist and I don’t have any ideas about the issue :

CMakeFiles/openmc.dir/src/xml/openmc_fox.F90.o
/home/users/openmc-master/src/xml/openmc_fox.F90:39.21:

type(NodeListPtr), pointer :: nll(:), temp_nll(:slight_smile:
1
Error: Derived type ‘nodelistptr’ at (1) is being used before it is defined

Maybe could you help as I’m a novice in openMC ?

Sorry for the trouble.

Regards

Laurent Chabert
Areva Technicatome

Nuclear Physics Expert

debug.fox (16.9 KB)

debug.openmc (13.2 KB)

Hi Laurent,

I believe the problem is that you need to download our fork of the FoX repository with changes made for OpenMC, rather than the main FoX repository. Our fork can be found here:

https://github.com/mit-crpg/fox

After downloading and unpacking in openmc/src/xml/fox, note that you don’t need to run cmake/make from within that directory – it will automatically get pulled in when you run cmake for openmc.

Let us know if you run into any more troubles.

Best regards,
Paul

Hi Paul,
First of all, thank you for your answer.
I do as you said, but i’ve the same error a bit farther [68%]…

ps : I recompile gcc with all option.

Did you make sure to clear out your build directory and then re-run cmake?

Yes i do. I still have the fortran error.

I have to apologize – I may have misled you before. You’ll actually need to download the ‘openmc’ branch from the mit-crpg/fox repository which you can find here:

https://github.com/mit-crpg/fox/tree/openmc

Once you download that branch and unpack it into src/xml/fox, I’m fairly certain it should fix the problem you’re seeing.

Best,
Paul