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

Unable to build VASP 5.4.4 with new Intel OneAPI compilers, mpi mkl #75

Open
aantao opened this issue Aug 3, 2022 · 1 comment
Open

Comments

@aantao
Copy link

aantao commented Aug 3, 2022

I am using the following versions of Intel OneAPI compilers:
Compilers 2022.1.0
MPI 2021.6.0
MKL 2022.1.0
When running "make all", I get the following error:

solvation.o: In function `pot_lpcm_k_mp_createcavity_':
solvation.f90:(.text+0x14a6d): undefined reference to `errfc_'
make[2]: *** [makefile:145: vasp] Error 1
make[2]: Leaving directory '/.../vaspsol/vasp.5.4.4/build/std'
cp: cannot stat 'vasp': No such file or directory
make[1]: *** [makefile:142: all] Error 1
make[1]: Leaving directory '/.../vaspsol/vasp.5.4.4/build/std'
make: *** [makefile:10: std] Error 2

Not sure how to resolve this issue.

@ericfonseca95
Copy link
Contributor

Hello,

A quick fix for this is to replace line 414 in solvation.F with this line:
CE_S(I) = ERFC( log(MAX(REAL(RWORK(I),KIND=q),CHGMIN)/nc_k) / SQRT(2._q)/sigma_k ) / 2._q
Then try recompiling VASP. Let me know if this helps,

Eric Fonseca

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

2 participants