! ============================================================
! M08 - Bug hunt
! ============================================================
/CLEAR,START                        ! Five typical failures when reusing macros and files.
/FILNAME,m08_bug_hunt,1
/UNITS,SI

! ERROR 1: arguments outside the contract.
! *USE with a non-positive ARG1 activates validation and stops the driver with /EOF.
! *USE,08_macro_debug.mac,0,-1000,0.05,1
! Symptom: /COM ERROR ARG1; /EOF before building.

! ERROR 2: invalid submacro path or name.
! /INPUT with an incorrect name cannot open the construction submacro.
! /INPUT,08_bild,mac,,,,1
! Symptom: unable to open file / macro not found in the .out.

! ERROR 3: empty component before loading.
! CMSEL,S,tip_nodes
! *GET,n_tip_check,NODE,0,COUNT   ! -> 0
! F,ALL,FY,-1000
! Symptom: zero load or warning; equilibrium impossible.

! ERROR 4: residual selection between phases.
! ! forgetting ALLSEL,ALL after CMSEL in 08_solve
! Symptom: SOLVE or FSUM operate on an accidental subset.

/COM,DIAGNOSE: ARG contract, /INPUT path, empty CM, residual selection, missing SET     ! Symptom: zero/garbage values; n_sets=0 in the CSV.
/COM,Table: symptom -> check (/STATUS,.out,counts) -> cause -> fix
FINISH



