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

MWFilters are only inclued in the source of MRCPP #103

Closed
bjorgve opened this issue Oct 21, 2019 · 14 comments
Closed

MWFilters are only inclued in the source of MRCPP #103

bjorgve opened this issue Oct 21, 2019 · 14 comments
Assignees

Comments

@bjorgve
Copy link
Member

bjorgve commented Oct 21, 2019

The MWFilters used when running mrchem are located in mrcpp/share/mwfilters. So they are not available if mrcpp is removed from the system.

@stigrj
Copy link
Contributor

stigrj commented Oct 21, 2019

Is it not installed with make install?

@stigrj
Copy link
Contributor

stigrj commented Oct 21, 2019

No, indeed this does not seem to be the case. Also the SAD input files for the initial guess needs to be installed under share/

@robertodr
Copy link
Contributor

Anything else that should be installed and isn't? @bjorgve and I can prepare a patch easily.

@robertodr
Copy link
Contributor

Note that there will always be an inconsistency between install and source trees when it comes to MW_FILTER_DIR in config.h. I can't think of a better way to bake in this info into the library...

@stigrj
Copy link
Contributor

stigrj commented Oct 21, 2019

I think mrcpp/share/mwfilters and mrchem/share/sad_basis are the two things missing

@stigrj
Copy link
Contributor

stigrj commented Oct 21, 2019

So it's not possible to get something that works both for the build and install trees at the same time? Is it not possible to reconfigure config.h at make install?

@robertodr
Copy link
Contributor

OK, yes, I can patch it up at install time. It gets trickier with the conda package, but that's a separate issue.

@robertodr
Copy link
Contributor

Even patching config.h is problematic (just tried and failed) The compile-time value of MW_FILTER_DIR is baked into the library since it's used in MWFilter.cpp. How inconvenient would it be to pass that as an input to MRCPP?

@stigrj
Copy link
Contributor

stigrj commented Oct 21, 2019

Is it possible to use a relative path? Should be the same in build and install

@robertodr
Copy link
Contributor

robertodr commented Oct 21, 2019

I don't know 🤔 It might not work when changing compilers.

@stigrj
Copy link
Contributor

stigrj commented Oct 21, 2019

Wait! There should be a INSTALL_FILTERS=on/off cmake option to mrcpp. Not sure if/how it works, though

@robertodr
Copy link
Contributor

Yes, that's where we started on this rabbithole. If you set that, then the tests fail, 'cause MW_FILTER_DIR is hardcoded to the install tree.

@robertodr
Copy link
Contributor

Look at #105 @bjorgve has a solution that, I think, will make everyone happy.

@robertodr
Copy link
Contributor

This was fixed with #112

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

3 participants