Skip to content

Test case 01_PW/032_PW_15_CF_CS_bspline failed for serial version ABACUS. #7422

@ErjieWu

Description

@ErjieWu

Describe the bug

When I try to test Windows version ABACUS, several test cases failed. One of them has an extremely large error that is not normal. With the help of AI, we found that Structure_Factor::bspline_sf (the nbspline B-spline structure-factor path) scattered each real-space plane into tmpr via zpiece_to_all, which is wrapped in #ifdef __MPI. In a serial build, tmpr was left uninitialized → garbage structure factor → energy/force/stress all wrong.

Expected behavior

No response

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions