DM is never reused!

Bug #1630849 reported by Chao Lian
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Siesta
Status tracked in Trunk
4.1
Fix Released
High
Nick Papior
Trunk
Fix Released
High
Nick Papior

Bug Description

DM.History.Depth is not even read in the siesta_option and always 0. Combined with the default value DM.AllowExtrapolation = true and DM.AllowReuse = true, in subroutine new_dm in m_new_dm.F90, the dminit is always true. Every MD step, the DM is reinitialized and never reused.

Version 4.1

Chao Lian (charleslian)
description: updated
Revision history for this message
Nick Papior (nickpapior) wrote :

For which kind of MD calculations are you experiencing this?

Please note that DM_history_depth gets reset to another value in this routine:

subroutine get_allowed_history_depth

in m_new_dm.

Hence, e.g. for the Tests/sih the DM is reused after each MD-step. Although the number of steps can't be controlled.

The logic in the m_new_dm code is under revision and indeed the intent is that DM_history_depth can be set by the user.

Revision history for this message
Chao Lian (charleslian) wrote :

Yes, it works for CG but my case is Verlet MD, because DM.AllowExtrapolation = false by default in CG but true in MD. It can be fixed by set DM.AllowExtrapolation = false manually, but still quite weird not to reuse DM in MD, right?

Revision history for this message
Nick Papior (nickpapior) wrote :

Ok, great. Thanks for the clarification. I can see now that it does not do the extrapolation.

You may use this patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.