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

Testcase jets2DFlucSplit fails #12

Closed
luohancfd opened this issue Sep 7, 2018 · 1 comment
Closed

Testcase jets2DFlucSplit fails #12

luohancfd opened this issue Sep 7, 2018 · 1 comment

Comments

@luohancfd
Copy link

luohancfd commented Sep 7, 2018

I followed the manual and successfully built the code with a configuration file similar to coolfluid.conf.mutationpp on both cluster and local machine. The previous one was compiled with icc+impi and the latter one was compiled with gcc+openmpi. I used ./prepare.pl --build=optim to generate build_dir for both of them. The testcase jets2DFR can be run without problem on both machine. But the testcase jets2DFlucSplit failed on the local machine. The code crashed and threw

coolfluid-solver: /home/han/coolfluid-svn/src/coolfluid/src/Framework/GeometricEntityRegister.cxx:89: COOLFluiD::CFuint COOLFluiD::Framework::GeometricEntityRegister::regist(const string&): Assertion `Environment::Factory<GeometricEntity>::getInstance().exists( providerName )' failed.

I hard-coded the file Framework/GeometricEntityRegister.cxx and let it print all the providers of GeometricEntity. For the jets2DFR case, it successfully printed all the ones defined in ShapeFunction but nothing was printed for the jets2DFlucSplit case.

If I change the command from ./prepare.pl --build=optim to ./prepare.pl --build=debug and add the following lines in the configuration file

debugprofile_cflags     = -pg -O2
debugprofile_cxxflags   = -pg -O2
debugprofile_fflags     = -pg -O2

The program won't crash but it runs slowly. I have no idea what is going wrong and hope you can help. Thank you!

@luohancfd
Copy link
Author

I found out a solution by adding the following lines to the beginning of CMakeList.txt

SET(CMAKE_C_FLAGS "")
SET(CMAKE_CXX_FLAGS "")
SET(CMAKE_Fortran_FLAGS "")
SET(CMAKE_SHARED_LINKER_FLAGS "")

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

No branches or pull requests

1 participant