Skip to content

Commit

Permalink
print warnings with certain settings of NNP symmetry function centeri…
Browse files Browse the repository at this point in the history
…ng and scaling
  • Loading branch information
hforbert committed Nov 28, 2024
1 parent 7f23908 commit d1f8d1b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/nnp_environment.F
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,16 @@ SUBROUTINE nnp_init_model(nnp_env, printtag)
IF (nnp_env%scale_sigma_acsf .AND. nnp_env%center_acsf) THEN
nnp_env%scale_sigma_acsf = .FALSE.
END IF
! Print warning if centering and scaling is requested:
IF (nnp_env%center_acsf .AND. nnp_env%scale_acsf) THEN
IF ((ABS(nnp_env%scmin) > EPSILON(0.0_dp)*1.0E+4_dp) .OR. (ABS(nnp_env%scmax - 1.0_dp) > EPSILON(0.0_dp)*1.0E+4_dp)) THEN
CALL cp_warn(__LOCATION__, &
"Centering and scaling of symmetry functions requested while scale_min_short_atomic != 0 and/or "// &
"scale_max_short_atomic != 1. Make sure that scaling and centering of symmetry functions in CP2K "// &
"is consistent with your training code. "// &
"In CP2K: G* = (G - ave(G)) / (max(G) - min(G)) * (Smax - Smin) + Smin")
END IF
END IF

CALL parser_search_string(parser, "normalize_nodes", .TRUE., found, &
search_from_begin_of_file=.TRUE.)
Expand Down

0 comments on commit d1f8d1b

Please sign in to comment.