Skip to content

Conversation

guj
Copy link
Contributor

@guj guj commented Sep 20, 2024

Particle only test for particles only.

example input file:

encoding=v
fileLocation=joined
maxMil=1
minMil=1
steps=2
joinedArray=true
backend=bp
usePDW=true

To do: simulate a BTD use case

{
m_Rank = rank;
#if defined(__linux)
// m_Name = "/proc/meminfo";

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Comment on lines +151 to +155
/*
m_Silent = silent;
if (!m_Silent)
MemoryProfiler(rank, tag);
*/

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.

std::string m_Tag;
int m_Rank = 0;
// bool m_Silent = false;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
for (const auto &[name, p] : m_GlobalProfilers)
{
std::vector<double> result(input.m_MPISize, 0);
// unsigned long buffer[m_Input.m_MPISize];

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Comment on lines +743 to +744
// currSpecies["positionOffset"]["x"].resetDataset(realDataSet);
// currSpecies["positionOffset"]["x"].makeConstant(0.);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
if (m_Input.m_UseJoinedDim)
return;
}
// Timer g("Gather Particle logistics ", m_Input.m_MPIRank);

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
{
std::string filename = argv[1];
std::fstream infile;
infile.open(filename, std::ios::in);

Check failure

Code scanning / CodeQL

Uncontrolled data used in path expression High

This argument to a file access function is derived from
user input (a command-line argument)
and then passed to std::basic_fstream<char, char_traits>::open(__s).
This argument to a file access function is derived from
user input (a command-line argument)
and then passed to std::basic_fstream<char, char_traits>::open(__s), which calls std::basic_filebuf<char, char_traits>::open(__s).
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.

1 participant