Skip to content

Following the ShearBand benchmark documentation page creates error message #397

@gassmoeller

Description

@gassmoeller

Related to openjournals/joss-reviews#9365

After trying to run the provided example files didnt work for me (see #395) I tried following the instructions for the ShearBand benchmark to see if I can reproduce Fig. 3 a) in the paper. I followed these instructions as precisely as possible: https://ptsolvers.github.io/JustRelax.jl/dev/man/ShearBands

Every time I got the package error described in #395 I manually installed the missing packages (Julia didnt actually install them, just activated them I think). When I got to the following lines:

phase_ratios = PhaseRatios(backend, length(rheology), ni)
init_phases!(phase_ratios, xci, radius)

I get the following error message:

ERROR: UndefVarError: `phase_ratios` not defined in `Main`
Suggestion: add an appropriate import or assignment. This global was declared but not assigned.
Stacktrace:
 [1] top-level scope
   @ REPL[33]:1

Is it possible that some line is missing in the instructions?

I generally struggle with the same problem in my projects. A duplication of the code on the documentation page eventually leads to conflicts or outdated code in the documentation, because the original source code is being updated. Ideally one can include the original file into the documentation, or only reproduce the most important lines and otherwise link to the original file. Everything that removes duplication reduces your future maintenance effort. This general comment is not something to address as part of the JOSS review, but maybe some guideline for future additions. But please check if an instruction is missing for the example documentation I listed above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions