Skip to content

feat: Dissolve2/cli2 - #2620

Open
rprospero wants to merge 7 commits into
develop2from
dissolve2/cli2
Open

rprospero wants to merge 7 commits into
develop2from
dissolve2/cli2

Conversation

@rprospero

Copy link
Copy Markdown
Contributor

This reworks the command line for the new node based setup and provides a initial, very rudimentary system test (more will be expended later).

The three biggest changes are:

  • The command line now requires both a (TOML) input file and the name of a node. That node will be run (along with the necessary ancestors). It's probably worthwhile to eventually expand this to a list of nodes, so that multiple outputs can both be enforced.
  • All references to a restart file have been replaced by a restart directory.
  • The command line no longer sets a global iteration count, as that is controlled by individual iteration nodes.

@rprospero rprospero changed the title Dissolve2/cli2 feat: Dissolve2/cli2 Sep 23, 2026
@rprospero
rprospero force-pushed the dissolve2/cli2 branch 2 times, most recently from 2037192 to 579d457 Compare October 6, 2026 10:46

@trisyoungs trisyoungs left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some changes suggested, but otherwise this looks fine (taking into account the fact that there are still unknowns of how the main simulation will be run!).

Comment thread src/main/cli.cpp

// Output Files
app.add_option("-f,--frequency", restartFileFrequency_, "Frequency at which to write restart file (default = 10)")
app.add_option("-f,--frequency", restartDirectoryFrequency_, "Frequency at which to write directory (default = 10)")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With #2612 on the cusp of being merged in everything here should really refer to "state" rather than "restart".

Comment thread src/main/dissolve.cpp
// Copyright (c) 2026 Team Dissolve and contributors

#include "main/dissolve.h"
#include "classes/kVector.h"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Random include!

Comment thread src/main/dissolve.h
std::string restartFilename_;
// Accumulated timing information for saving restart file
// Filename of current restart directory
std::string restartDirectoryName_;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we be using std::filesystem::path (or whatever it is) here for consistency with files specified elsewhere (e.g. in import nodes)?

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.

3 participants