Skip to content

Commit

Permalink
Enable compilation without deepmd (unused arguments)
Browse files Browse the repository at this point in the history
  • Loading branch information
abussy committed Jan 8, 2024
1 parent 38b08aa commit c5db040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/deepmd_wrapper.F
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ FUNCTION dp_deep_pot(model) RESULT(pot)
#if(__DEEPMD)
pot = dp_deep_pot_c(c_model=TRIM(model)//C_NULL_CHAR)
#else
MARK_USED(model)
pot = C_NULL_PTR
#endif
END FUNCTION dp_deep_pot
Expand Down
1 change: 1 addition & 0 deletions src/manybody_deepmd.F
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ SUBROUTINE deepmd_add_force_virial(fist_nonbond_env, force, pv_nonbond, use_viri
MARK_USED(fist_nonbond_env)
MARK_USED(force)
MARK_USED(pv_nonbond)
MARK_USED(use_virial)
#else
CALL fist_nonbond_env_get(fist_nonbond_env, deepmd_data=deepmd_data)

Expand Down

0 comments on commit c5db040

Please sign in to comment.