There are times after the first load into SAMM while you shakedown / debugging when it is useful to modify some model code without having to go through the full model reload procedure.

OR

Then

  1. Open SAMM
  2. Set File Path… to the appropriate cal or sim directory.
  3. Go in the diagram to the calculator you want to patch the code for and open it up
  4. Go to the Windows menu and choose Hierarchy
  5. Select from the menus Hierarchy Actions | Reload Calculator….
  6. The code can be verified from Hierarchy Actions | Show Code….

Note: every variable downstream of this procedure will be out of date and need to be re-evaluated.
There are two ways to approach re-evaluating the model.

  1. Single calculator
    1. With the Diagram window active select Unevaluate Variables from the Diagram Actions menu.
    2. Double click on the variable of interest in the diagram and the model will re-evaluate all of the unevaluated variables
  2. Scenario
    1. With the Scenario window active select Unevaluate from the Scenario Actions menu.
    2. Double click on the variable of interest in the diagram and the model will re-evaluate all of the unevaluated variables

Note: the diagram code will not reflect the updated code. However, this can be manually updated from Windows | Frameworks and then FW Actions | Load Diagram.