McStas logo McStas - A neutron ray-trace simulation package ILL; PSI; ESS Niels Bohr Institute DTU Physics

McStas

About McStas
 Conditions of use
 Authors/Contacts
 Project funding

Download
 Components
 Other Downloads (share)

Mailing list

Search web/mailinglist

Documentation
 Wiki (GitHub)
 McStas manual
 Publications

Links

Report bugs (GitHub)

Code-repository (GitHub)


McStas: Unittest_ALLOW_BACKPROP

[ Identification | Description | Input parameters | Links ]

The Unittest_ALLOW_BACKPROP Instrument

Unittest for ALLOW_BACKPROP macro

Identification

  • Site: Tests_grammar
  • Author: Peter Willendrup
  • Origin: ESS
  • Date: February 2026

Description

Unittest to ensure that the macro ALLOW_BACKPROP works correctly.

The test instrument includes two monitors, with a selectable ALLOW_BACKPROP in between.
The second monitor is placed physically "earlier" than the first, but logically after.

1) With Backprop=0 the second monitor (closer to the source) should yield a signal of 0
2) With Backprop=1 the second monitor should measure a signal since backpropagation is allowed

Input parameters

Parameters in boldface are required; the others are optional.
NameUnitDescriptionDefault
Backprop1Flag to enable the ALLOW_BACKPROP macro0

Links

  • Source code for Unittest_ALLOW_BACKPROP.instr.
  • A reference/HTML link for more information

[ Identification | Description | Input parameters | Links ]

Generated for mcstas 3.6.14


Last Modified: Monday, 13-Apr-2026 11:30:07 CEST
Search website mailinglist archive GitHub repos