-
Notifications
You must be signed in to change notification settings - Fork 69
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
Uf23 #490
Uf23 #490
Conversation
Hi @MichaelUnger |
Hi @lukasmerten Cheers, |
*/ | ||
UF23Field(const ModelType mt); | ||
/// no default constructor | ||
UF23Field() = delete; |
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.
You probably chose to not provide a default model because none of the models yielded a significantly better fit than the others, right?
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.
Yes, I think that not providing a default model makes the user aware that this is a collection of 8 models to choose from.
double& fPoloidalR = fParameters[ePoloidalR]; | ||
double& fPoloidalW = fParameters[ePoloidalW]; | ||
double& fPoloidalZ = fParameters[ePoloidalZ]; | ||
double& fPoloidalXi = fParameters[ePoloidalXi]; |
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.
alignment
} | ||
|
||
namespace crpropa { | ||
UF23Field::UF23Field(const ModelType mt) : |
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.
Could you add a comment that the UF23 model is internally using 1e-6*gauss=1, kpc=1, etc.
If you have a better place to make this statement I am also fine with it.
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.
Added a comment it at this point of cpp file, since it is internal to the code and not visible to the outside user.
Please add a comment to the CHANGELOG file under new features. |
Apart from the small changes I suggested this PR looks good to me. |
Thanks for the review, I changed the fork accordingly. |
added new models of the coherent magnetic field from 2311.12120