Skip to content
Marc & Structures
Index

Save your progress

Enter your email and we will send a secure sign-in link. There is no password and the first link creates your account.

Debugging ~6 min · ~24 min remaining

Diagnose parametric scripts

Connect symptoms to causes: units, incorrectly sized arrays, and unclosed loops.

Bug hunt

Download 01_bug_hunt.mac. Don't run it yet. Find five flaws:

  1. A height expressed in incompatible units.
  2. An impossible mesh size.
  3. A power written as multiplication.
  4. An incorrectly signed stress magnitude to compare with a limit.
  5. A geometry that ignores the parameter block.

For each defect write: probable symptom, cause and minimal correction.

Quick check

A *DO loop does not iterate. What would you check first?

Professional incident

Incident M01: diagnose before editing

The sweep repeats rows or mixes parameter units.

Execution cycle

  1. 1 Run the broken script in a clean folder.
  2. 2 Preserve the original .out.
  3. 3 Write one causal hypothesis and make one change.
  4. 4 Compare evidence before and after.
Evidence to retain

Graduated hints

1 · Concept hint

Find the first broken contract.

2 · Command hint

Inspect state related to *DO, *SET, and *VWRITE.

3 · Explained solution

Compare with the module deliverable and explain why the corrected state restores the contract.

Your reflection stays in this browser.