SAnsell / CombLayer

MCNP(X) project builder using C++
GNU General Public License v3.0
14 stars 13 forks source link

Surface comments #111

Closed marquezj closed 4 years ago

marquezj commented 4 years ago

Comments are added as an optional string argument in ModelSupport::buildPlane(), ModelSupport::buildCylinder(), etc. See BilbaoWheel::createSurfaces() for an example of usage.

Output of comments to the MCNP file is controlled by the -SC command line flag.

(Additionally: order in Cmake.pl was changed to make it run with gcc 7.4.0)

SAnsell commented 4 years ago

This breaks the principle of the Comblayer -- that the output files for MCNP etc are machine code and not human readable. It also adds a level of complexity to the surface system that adds little.

ObjectRegister gives the FixedComp for each cell number range.
Renumber.txt gives the cell numbers/ surfaces numbers if an old version of MCNP is being used and renumber is requested.

Update to CMake.pl accepted. If this helps people compile on Ubuntu/RedHat without changing anything for others. This is great.