Skip to content

Suitable warning message for ADMM forces #1960

@ezpzbz

Description

@ezpzbz

Hi,
I noticed that if user sets ADMM_PURIFICATION_METHOD to values except MO_DIAG and NONE, geometry optimisation will fail but the log file does not provide an error message.
image

Inspecting the admm_methods.F at line 2033 shows the source of error as forces are not implemented otherwise.

cp2k/src/admm_methods.F

Lines 2026 to 2034 in d40d240

! *** forces are only implemented for mo_diag or none and basis_projection ***
IF (admm_env%block_dm) THEN
CPABORT("")
END IF
IF (.NOT. (admm_env%purification_method == do_admm_purify_mo_diag .OR. &
admm_env%purification_method == do_admm_purify_none)) THEN
CPABORT("")
END IF

but the CPABORT does not contain error message.
If it helps I can open a PR adding these error messages.
Best regards,
Pezhman

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions