Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Dec 10, 2024
1 parent bea3123 commit 2e6cae4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/api_cc/include/DeepPotPD.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace deepmd {
/**
* @brief Paddle implementation for Deep Potential.
**/
class DeepPotPD : public DeepPotBase {
class DeepPotPD : public DeepPotBackend {
public:
/**
* @brief DP constructor without initialization.
Expand Down
2 changes: 1 addition & 1 deletion source/api_cc/src/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ deepmd::DPBackend deepmd::get_backend(const std::string& model) {
return deepmd::DPBackend::JAX;
} else if ((model.length() >= 5 &&
model.substr(model.length() - 5) == ".json")) {
backend = deepmd::DPBackend::Paddle;
return deepmd::DPBackend::Paddle;

Check warning on line 1417 in source/api_cc/src/common.cc

View check run for this annotation

Codecov / codecov/patch

source/api_cc/src/common.cc#L1416-L1417

Added lines #L1416 - L1417 were not covered by tests
}
throw deepmd::deepmd_exception("Unsupported model file format");
}
1 change: 1 addition & 0 deletions source/lmp/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if(DEFINED LAMMPS_SOURCE_ROOT OR DEFINED LAMMPS_VERSION)
lammps_download
GIT_REPOSITORY https://github.com/lammps/lammps
GIT_TAG ${LAMMPS_VERSION})
message(STATUS "STARTING DOWNLOAD LAMMPS TO" ${LAMMPS_SOURCE_ROOT})
FetchContent_MakeAvailable(lammps_download)
set(LAMMPS_SOURCE_ROOT ${lammps_download_SOURCE_DIR})
endif()
Expand Down

0 comments on commit 2e6cae4

Please sign in to comment.