Skip to content

Conversation

@wthrowe
Copy link
Member

@wthrowe wthrowe commented Oct 11, 2021

Proposed changes

Upgrade instructions

Code review checklist

  • The code is documented and the documentation renders correctly. Run
    make doc to generate the documentation locally into BUILD_DIR/docs/html.
    Then open index.html.
  • The code follows the stylistic and code quality guidelines listed in the
    code review guide.
  • The PR lists upgrade instructions and is labeled bugfix or
    new feature if appropriate.

Further comments

@knelli2 knelli2 self-requested a review October 11, 2021 19:05
Comment on lines 86 to 94
struct SystemA : tt::ConformsTo<control_system::protocols::ControlSystem> {
static std::string name() { return "A"; }
using measurement = Measurement<tmpl::list<SystemA, SystemB>>;
struct process_measurement {};
};
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm surprised this conforms to the protocol. Doesn't it also need a using simple_tags = tmpl::list<>?
Same for the others in this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably nothing used here does a check. I've added some assertions.

Comment on lines +68 to +70
public:
using type = tmpl::conditional_t<std::is_same_v<declared_type, void>,
tmpl::list<>, tmpl::list<declared_type>>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question. Why does the conforming type have to specify void if it's just going to end up as an empty list anyways? Why can't it just originally be an empty list?

Copy link
Member Author

Choose a reason for hiding this comment

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

The alias isn't a list, just a type.

Comment on lines 4 to 7
set(LIBRARY_SOURCES
${LIBRARY_SOURCES}
Actions/Test_InitializeMeasurements.cpp
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you also move the Test_Initialization.cpp into the Actions namespace in a separate commit. We should probably keep things consist.

knelli2
knelli2 previously approved these changes Oct 12, 2021
Copy link
Contributor

@knelli2 knelli2 left a comment

Choose a reason for hiding this comment

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

Looks good. You can squash.

knelli2
knelli2 previously approved these changes Oct 13, 2021
kidder
kidder previously approved these changes Oct 18, 2021
@kidder
Copy link
Member

kidder commented Oct 18, 2021

@wthrowe this needs a rebase

@wthrowe wthrowe dismissed stale reviews from kidder and knelli2 via b97a52b October 18, 2021 20:14
@wthrowe wthrowe force-pushed the control_measurement branch from 291f207 to b97a52b Compare October 18, 2021 20:14
@kidder
Copy link
Member

kidder commented Oct 20, 2021

ignoring failure of test to compile on (gcc-10, Debug, ON)

@kidder kidder merged commit 931d6e5 into sxs-collaboration:develop Oct 20, 2021
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