Skip to content

Check that derivatives are only taken of grid functions #134

@ianhinder

Description

@ianhinder

Currently, if the user tries to take a derivative of a shorthand, this results in a compile-time error. This should be a Kranc-time error.

/Users/comerduncan/Cactus/arrangements/Cosmology/CT_BrillAnalytic/src/CT_BrillAnalyticCoefficients.cc:220:84: error: 'sqrtdetg' was not declared in this scope
     const CCTK_REAL PDstandardNth1sqrtdetg CCTK_ATTRIBUTE_UNUSED = PDstandardNth1(&sqrtdetg[index]);

(This error happens because derivatives are computed before shorthands are declared in the C++ source file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions