Skip to content

Remove shared files causing collisions when generating the code for two models at the same time. Also speed up generation time by 10s per model.

The feCodeGen.pl script was using ./diags.txt and ./diags2.txt to build the <model>_partConnectionList.txt for each model. It would then copy diags.txt to _partConnectionList.txt when code generation was complete. This meant that multiple models could not be built at the same time because they were sharing the diags files.

This MR replaces those file with ones specific to the model being built. This is done by having feCodeGen.pl do two things:

  1. Instead of writing the diags.txt file and then copying it, it just writes out <model>_partConnectionList.txt directly.
  2. Instead of writing the diags2.txt file (all unsorted ADC inputs), it writes the same output to a file named partConnectionListFilteredADC.txt into the $RCG_BULDD/build/<model>epics/config/ directory (Where the sorted adc list is already being deposited).

We also clean up the code a bit and remove some sleeps that slows down building models by 10 s each.

Edited by Ezekiel Dohmen

Merge request reports