Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make note of build procedure regarding moab_source.F90 #66

Open
makeclean opened this issue Jul 26, 2013 · 6 comments
Open

Make note of build procedure regarding moab_source.F90 #66

makeclean opened this issue Jul 26, 2013 · 6 comments

Comments

@makeclean
Copy link
Contributor

Need patch file or instructions as how to use moab_source.F90 as my installation fails to find iMesh_f.h. I can't seem to pass the appropriate variable using the MCNP build script.

I can make it work by hacking it, i.e.

1 make build CONFIG='......'
2 when it fails, cd into src, gfortran -c moab_source.F90 -I/path/to/moab/include -fcray-pointers -o moab_source.o
3 manual linking, cd into src, gfortran *.o -o mcnp5

I.e. a bit dirty.

@erelson
Copy link
Contributor

erelson commented Jul 27, 2013

Not sure if this is useful, but referencing info from a few past issues:

From #44:

To summarize the needed changes; in DAG-MCNP/config/Linux.gcf:

add -fcray-pointer to FFLAGS
add -liMesh to DAGMC_LIBS
add $(MOAB_INCLUDES) to FPPFLAGS

This issue is very similar to one I made for DAGMC: svalinn/DAGMC#48

@gonuke
Copy link
Member

gonuke commented Jul 29, 2013

Do we know why we need the cray-pointer flag? Is this a MOAB thing?

@erelson
Copy link
Contributor

erelson commented Jul 29, 2013

Yup. I never investigated if there was a workaround to this... I think Fortran 90 has more modern, built-in pointers? Efficient bet would probably be to ask Tim.

@makeclean
Copy link
Contributor Author

I think its the way you declare your pointer, its not std F90 form by the looks of it. Eg

 real, pointer :: bob

 bob => something

I could be wrong but it doesn't look F90ish

@erelson
Copy link
Contributor

erelson commented Jul 29, 2013

Yeah, I'm using cray pointers as that's how all the example Fortran ITAPS usage is done. It might be a F77 compatibility thing.

@makeclean
Copy link
Contributor Author

You are almost certainly correct. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants