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)


The Union_init McStas Component

12.2  The Union_init McStas Component

Deprecated no-op placeholder, kept for backward compatibility.

Identification

  • Author: Mads Bertelsen

  • Origin: ESS DMSC

  • Date: 20.08.15

Description

Part of the Union components, a set of components that work together and thus sperates geometry and physics within McStas.

This component used to be required as the FIRST Union component. It defined the shared library (union-lib.c) and owned the shared global lists, which the other Union components reached via COMP_GETPAR3.

That is no longer needed: every Union component loads the Union library (union-lib) itself, and the library owns the shared lists. The Union_init and Union_stop components are therefore optional.

This definition is kept only so that existing instruments that still place a Union_init component continue to compile. It emits a deprecation warning and has no effect.

Input parameters

Parameters in boldface are required; the others are optional.

Name

Unit

Description

Default

Links

  • Component source code found in file Union_init.comp.

  • ******************************************************************************/


Last Modified: Tuesday, 06-Oct-2026 21:19:11 CEST
Search website mailinglist archive GitHub repos