Cross-check of Source_adapt/Adapt_check against Source_simple
Identification
Site: Tests_sources
Author: Peter Willendrup (with AI assistance)
Origin: DTU
Date: November 2026
Description
A small off-centre slit cuts out a small part of the emitted phase space.
With adapt=1, Source_adapt learns to emit into that part (Adapt_check placed
after the slit); with adapt=0, Source_simple with the
same geometry and flux is used. The intensity after the
slit must be the same.
Examples
(Test cases in bold)
Test: adapt=0 Detector: lmon_I=2.49443e+08
Test: adapt=1 Detector: lmon_I=2.50157e+08
Input parameters
Parameters in boldface are required;
the others are optional.