set_adj#
- Project.set_adj(params: ndarray = None) str#
Generate the files for the adjoint simulations to run.
paramsis accepted for API symmetry withset_fwd()but is intentionally unused here: each adjoint file is built by loading the already-saved forward.fsp(which already contains the base setup, applied config, and geometry at the current parameters) and only changing the source/port settings. The expectation is thatset_fwd()was called with the sameparamsimmediately beforeset_adj()– this is whatcompute_gradient()does internally.- Parameters:
- params
np.ndarray,optional Unused. Geometry comes from the forward simulation file.
- params