Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split RANK_COUNT out of RANK in SLIC message formatting #1390

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

white238
Copy link
Member

Fixes #256.

@gberg617

@white238 white238 added enhancement New feature or request Slic Issues related to Axom's 'slic' component User Request Issues related to user requests labels Jul 25, 2024
@white238
Copy link
Member Author

/style

@@ -423,12 +429,13 @@ The ``MyStream`` class implements the ``LogStream::append()`` method of the
int line,
bool AXOM_UNUSED_PARAM(filtered_duplicates) )
{
assert( m_stream != nillptr );
assert( m_stream != nullptr );
Copy link
Member

Choose a reason for hiding this comment

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

Yikes! How did that compile?

Copy link
Member Author

Choose a reason for hiding this comment

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

It didn't because it is just a code chunk in the documentation. A very good example why we shouldn't do this in general =)

std::string("\t<TIMESTAMP>\n") + std::string("\tLEVEL=<LEVEL>\n") +
std::string("\tRANKS=<RANK>\n") + std::string("\tFILE=<FILE>\n") +
std::string("\tLINE=<LINE>\n");
constexpr const char* format = R"(
Copy link
Member

Choose a reason for hiding this comment

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

👍

@gberg617
Copy link

Fixes #256.

@gberg617

This looks great! Thanks 😄

@white238 white238 merged commit 209cad4 into develop Jul 29, 2024
13 checks passed
@white238 white238 deleted the feature/white238/split_slic_rank_and_rank_count branch July 29, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Slic Issues related to Axom's 'slic' component User Request Issues related to user requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SLIC/Lumberjack: support formatting RANK_COUNT and RANKS
4 participants