Skip to content

Object gen fixed seed - #408

Draft
amartyads wants to merge 5 commits into
ls1mardyn:masterfrom
amartyads:objectGenFixedSeed
Draft

amartyads wants to merge 5 commits into
ls1mardyn:masterfrom
amartyads:objectGenFixedSeed

Conversation

@amartyads

Copy link
Copy Markdown
Contributor

Description

With this PR, I'm adding the possibility of fixed seeds in the MultiObjectGenerator.

How Has This Been Tested?

Options tested, corner cases checked

The reason I'm adding the rank to the seed is because of MaMiCo, but also because I came across this commit, which has been removed in #377 . I can't see anything that would cause it to become unnecessary when using the EqualVelocityAssigner. Maybe I'm missing something. But I did approve the PR, and I assume it was checked back then, that this effect did not occur, or was ultimately not important (equilibration should take care of it eventually anyway).

Documentation

  • all-options.xml documents how to use the feature. (There's no corresponding entry in all-options to update)
  • The responsible readXML() documents how to use the feature.

@amartyads
amartyads requested a review from rubenhorn October 5, 2026 17:15
@amartyads
amartyads marked this pull request as draft October 5, 2026 22:29
rubenhorn
rubenhorn previously approved these changes Oct 6, 2026

@rubenhorn rubenhorn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. (2 comments are just minor ideas)

Comment thread src/io/ObjectGenerator.h
<filler type="STRING"> <!-- see Filler documentation --> </filler>
<object type="STRING"> <!-- see Object documentation --> </object>
<velocityAssigner type="STRING"> <!-- see VelocityAssignerBase documentation --> </velocityAssigner>
<velocityAssigner type="STRING" enableRandomSeed="BOOL" seed="LONG">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps one could also add a comment here to indicate that enableRandomSeed and seed are mutually exclusive.


} else {
} else if(fixedSeed != 0) {
return fixedSeed + _simulation.domainDecomposition().getRank();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it makes sense to multiply fixedSeed by 1k to keep the ranks “visible” in the decimal representation for debugging purposes?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants