If this repository helps your VASPsol work, please click Star on GitHub so other researchers can find it more easily.
如果这个仓库对你的 VASPsol 计算或编译有帮助,欢迎在 GitHub 右上角点一下 Star,方便更多研究者发现和使用。(15块万能某宝买的呢)
This repository provides patch files and a solvation.F source file for integrating VASPsol-related changes with selected VASP versions.
Supported patch targets:
| Target | Patch file |
|---|---|
| VASP 5.4.4 | patches/vaspsol++-vasp_5.4.4.patch |
| VASP 6.3.2 | patches/vaspsol++-vasp_6.3.2.patch |
| VTST + VASP 5.4.4 | patches/vaspsol++-vtst-vasp_5.4.4.patch |
| VTST + VASP 6.3.2 | patches/vaspsol++-vtst-vasp_6.3.2.patch |
The repository does not include VASP source code. You must have legal access to the matching VASP source version before applying these patches.
src/solvation.F: VASPsol-related Fortran source file.patches/*.patch: Git patch files for different VASP / VTST version combinations.LICENSE: Apache License 2.0, matching the license notice insolvation.F.
Start from a clean copy of the corresponding VASP source tree.
-
Copy
src/solvation.Finto the VASP source directory:cp src/solvation.F /path/to/vasp/src/solvation.F
-
Enter the VASP source root, the directory that contains
src/.cd /path/to/vasp -
Apply the matching patch:
git apply /path/to/this/repository/patches/vaspsol++-vasp_6.3.2.patch
For VTST-enabled VASP, use the corresponding
vaspsol++-vtst-*patch instead. -
Rebuild VASP according to your local compiler, MPI, and VASP build configuration.
- Apply only the patch that matches your VASP and VTST combination.
- If
git applyreports conflicts, check whether your VASP source differs from the expected release or has already been modified. - This repository packages the patch files for open sharing; build validation depends on your local VASP source, compiler toolchain, and installed libraries.
本仓库提供用于部分 VASP 版本的 VASPsol 相关补丁文件,以及配套的 solvation.F 源文件,便于研究者在已有 VASP 源码基础上集成隐式溶剂化相关功能。
支持的补丁目标如下:
| 目标版本 | 补丁文件 |
|---|---|
| VASP 5.4.4 | patches/vaspsol++-vasp_5.4.4.patch |
| VASP 6.3.2 | patches/vaspsol++-vasp_6.3.2.patch |
| VTST + VASP 5.4.4 | patches/vaspsol++-vtst-vasp_5.4.4.patch |
| VTST + VASP 6.3.2 | patches/vaspsol++-vtst-vasp_6.3.2.patch |
本仓库不包含 VASP 源码。使用者需要自行合法获得对应版本的 VASP 源代码后,再应用这些补丁。
src/solvation.F:VASPsol 相关 Fortran 源文件。patches/*.patch:面向不同 VASP / VTST 组合的补丁文件。LICENSE:Apache License 2.0,与solvation.F文件头部的许可证声明保持一致。
请从干净的对应版本 VASP 源码开始操作。
-
将
src/solvation.F复制到 VASP 的src目录:cp src/solvation.F /path/to/vasp/src/solvation.F
-
进入 VASP 源码根目录,即包含
src/的目录:cd /path/to/vasp -
应用与你的版本匹配的补丁:
git apply /path/to/this/repository/patches/vaspsol++-vasp_6.3.2.patch
如果使用的是带 VTST 的 VASP,请选择对应的
vaspsol++-vtst-*补丁。 -
按照本机编译器、MPI 环境和 VASP 原有编译配置重新编译。
- 每次只应用与你的 VASP / VTST 组合匹配的一个补丁。
- 如果
git apply报冲突,通常说明本地 VASP 源码版本不匹配,或源码已经被其他补丁修改过。 - 本仓库负责整理并开源补丁文件;实际编译结果取决于你的 VASP 源码、编译器、MPI 和依赖库环境。