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

Bugfix/b3 d thermalization #335

Merged
merged 4 commits into from
Jan 7, 2025
Merged

Bugfix/b3 d thermalization #335

merged 4 commits into from
Jan 7, 2025

Conversation

kudav
Copy link
Collaborator

@kudav kudav commented Jan 7, 2025

Stability fixes to the thermalization calculation after the recent changes incorporating velocity diffusion.

@lazersos lazersos self-requested a review January 7, 2025 12:29
@lazersos lazersos added the bug Something isn't working label Jan 7, 2025
@@ -285,7 +286,7 @@ SUBROUTINE beams3d_physics_gc(t, q)
CALL R8HERM3FCN(ict,1,1,fval,i,j,k,xparam,yparam,zparam,&
hr(i),hri(i),hp(j),hpi(j),hz(k),hzi(k),&
MODB4D(1,1,1,1),nr,nphi,nz)
modb = fval(1)
modb = max(fval(1),zero)
Copy link
Collaborator

Choose a reason for hiding this comment

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

MODB4D is by deffinition positive deffinite. If not then there is something wrong with the magnetic field. I'd prefer to leave this line like it is.

Copy link
Collaborator

@lazersos lazersos left a comment

Choose a reason for hiding this comment

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

One minor change then we can go ahead and merge.

@lazersos lazersos merged commit 7753d40 into develop Jan 7, 2025
2 checks passed
@lazersos lazersos deleted the bugfix/B3D_thermalization branch January 7, 2025 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants