Skip to content

fixed_axes shape keyword error in cell-relax (LTS) #6656

Description

@kogareru1z

Describe the bug

When performing cell-relax calculations with the fixed_axes shape keyword in the ABACUS LTS version, an error occurs indicating that only relax_new = 1 is supported. However, the documentation shows that relax_new defaults to True (which equals 1). The error persists even when explicitly setting relax_new 1 in the INPUT file.

Expected behavior

The calculation should proceed normally since relax_new is already set to 1 by default according to the documentation.

To Reproduce

No response

Environment

No response

Additional Context

No response

Task list for Issue attackers (only for developers)

  • Verify the issue is not a duplicate.
  • Describe the bug.
  • Steps to reproduce.
  • Expected behavior.
  • Error message.
  • Environment details.
  • Additional context.
  • Assign a priority level (low, medium, high, urgent).
  • Assign the issue to a team member.
  • Label the issue with relevant tags.
  • Identify possible related issues.
  • Create a unit test or automated test to reproduce the bug (if applicable).
  • Fix the bug.
  • Test the fix.
  • Update documentation (if necessary).
  • Close the issue and inform the reporter (if applicable).

Activity

dyzheng commented on Oct 29, 2025

@dyzheng
Collaborator

Can you upload your INPUT file? I tested but cannot repeat your error.

kogareru1z commented on Oct 29, 2025

@kogareru1z
Author

kogareru1z commented on Oct 29, 2025

@kogareru1z
Author

ABACUS v3.10.0

           Atomic-orbital Based Ab-initio Computation at UStc                    

                 Website: http://abacus.ustc.edu.cn/                             
           Documentation: https://abacus.deepmodeling.com/                       
              Repository: https://github.com/abacusmodeling/abacus-develop       
                          https://github.com/deepmodeling/abacus-develop         
                  Commit: 1be7425f0 (Tue Apr 1 10:55:07 2025 +0000)

Wed Oct 29 16:06:20 2025

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTICE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

fixed shape and fixed volume only supported for relax_new = 1
CHECK IN FILE : OUT.cell-relax_Ptsub/warning.log

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTICE
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
TIME STATISTICS

CLASS_NAME NAME TIME/s CALLS AVG/s PER/%

        total      0.21   1        0.21   100.00 

Driver reading 0.00 1 0.00 0.00

See output information in : OUT.cell-relax_Ptsub/

This is the result of my test.

dyzheng commented on Oct 29, 2025

@dyzheng
Collaborator

relax_method bfgs_trad will autoset relax_new false, you can use cg method for this calculation.

dyzheng commented on Oct 29, 2025

@dyzheng
Collaborator

This is indeed a bug that needs to be fixed.

relax_method bfgs_trad will autoset relax_new false, you can use cg method for this calculation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions