Skip to content

Mismatch between variable names at set_bc.cpp #492

@Eleven7825

Description

@Eleven7825

Description

set_bc_dir is set to use the new variables in the definitions:

/// @brief Apply Dirichlet BCs strongly.
///
/// Parameters
/// lA - New time derivative of variables (An)
/// lY - New variables (Yn)
/// lD - New integrated variables (Dn)
///
/// Modfies:
/// lA(tDof, tnNo)
/// lY(tDof, tnNo)
/// lD(tDof, tnNo)
/// com_mod.Ad - Time derivative of displacement
///
/// Reproduces 'SUBROUTINE SETBCDIR(lA, lY, lD)'
//
void set_bc_dir(ComMod& com_mod, Array<double>& lA, Array<double>& lY, Array<double>& lD)

However, we seem to use the old variables when calling the functions

// Making sure the old solution satisfies BCs
//
// Modifes
// com_mod.Ao - Old time derivative of variables (acceleration)
// com_mod.Yo - Old variables (velocity)
// com_mod.Do - Old integrated variables (dissplacement)
//
set_bc::set_bc_dir(com_mod, com_mod.Ao, com_mod.Yo, com_mod.Do);

Any thoughts, @ktbolt ?

Expected behavior

Still pass the test, so we suspect it is just a naming issue?

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct and Contributing Guidelines

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions