-
Notifications
You must be signed in to change notification settings - Fork 250
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
[StatApp] Getting ready statistics application for CI integration #7094
Conversation
if this is to be merged then please also add it to the nightly build |
as asked here, who are the official maintainers? |
I will be the official maintainer for now :). Where should I put it ? In the issue? |
you need a second maintainer |
meanwhile there are many compiler errors in Win |
on it.... |
I am ok as second maintainer. |
@roigcarlo No matter what I do, I cannot get StatisticsApplication to be compiled with Windows. Could you please have a look? I have no experience with Kratos windows compilation. :/ |
Sure, let me take a look |
@roigcarlo thanks a lot. :) @philbucher if everything is ok to add for CI, could you please approve? nightly builds are failing not because of stat app. |
this is not my decision only ;) But I will take a look at your changes |
rModelPart.GetCommunicator().GetDataCommunicator().SumAll( | ||
r_container.size()); | ||
static_cast<double>(r_container.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot you use unsigned int
here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i casted it directly to double since the next line I anyways have to deal with the double value, so i can avoid double casting.
return sum * (1.0 / std::max(number_of_items, 1.0));
.
rModelPart.GetCommunicator().GetDataCommunicator().SumAll( | ||
r_container.size()); | ||
static_cast<double>(r_container.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
rModelPart.GetCommunicator().GetDataCommunicator().SumAll( | ||
r_container.size()); | ||
static_cast<double>(r_container.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
rModelPart.GetCommunicator().GetDataCommunicator().SumAll( | ||
r_container.size()); | ||
static_cast<double>(r_container.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
rModelPart.GetCommunicator().GetDataCommunicator().SumAll( | ||
r_container.size()); | ||
return std::sqrt(global_sum / std::max(static_cast<double>(number_of_items), 1.0)); | ||
static_cast<double>(r_container.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
rModelPart.GetCommunicator().GetDataCommunicator().SumAll( | ||
r_container.size()); | ||
static_cast<double>(r_container.size())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
To me it looks good (can't approve because of the commits). Maybe if we merge with the master it compiles the nightlies, seems that more recent branches have the problem fixed. |
I checked the latest nighly build log, the same tests are still failing (and it is 7 hours old). Do you think I should merge master? |
nightly fails pretty much all the time, there is always sth not working :) |
Hi,
This PR makes StatApp ready for CI integration (linux and windows both).
It has 5 cpp tests, 54 MPI tests takes 1.7 seconds, and 66 OpenMP tests takes 2.22 seconds in my PC.