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

num: make test src f2008 standard compliant #696

Merged

Conversation

VincentVanlaer
Copy link
Collaborator

No description provided.

@evbauer evbauer requested a review from pmocz July 30, 2024 17:33
Copy link
Member

@pmocz pmocz left a comment

Choose a reason for hiding this comment

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

This is fantastic, Vincent!

Let's make all of MESA f2008 standard compliant. I had recently added some changes like this one myself a couple weeks ago

@pmocz pmocz self-assigned this Jul 30, 2024
@warrickball
Copy link
Contributor

warrickball commented Jul 30, 2024

Nice work Vincent! The changes look good to me (given a ~2 minute glance). I'm not sure if it's clear to everyone but I think the process with external PRs is still to merge into a new branch in the MESAHub repo (e.g. MESAHub:num-test-stanadard) so we can run the integrations tests, then we merge that into MESAHub:main.

Let's make all of MESA f2008 standard compliant. I had recently added some changes like this one myself a couple weeks ago

💯

I realise it's a bit of a digression but I thought I'd mention that I tried to take on and basically abandoned an effort to modernise the OP kap routines in #527. You can see my rationale there but it would help barrel down on why we still occasionally get bit-for-bit differences in the radiative_levitation test case.

@VincentVanlaer
Copy link
Collaborator Author

Let's make all of MESA f2008 standard compliant. I had recently added some changes like this one myself a couple weeks ago

Currently that's the only thing the new build system supports. That is also why I made this PR. I noticed that I missed that some of the main source files of the num module fail, so I'll add those to this PR as well.

I'm not sure if it's clear to everyone but I think the process with external PRs is still to merge into a new branch in the MESAHub repo (e.g. MESAHub:num-test-stanadard) so we can run the integrations tests, then we merge that into MESAHub:main.

I don't think I can do that since the branch doesn't exist (or at least not after the PR is created).

@warrickball
Copy link
Contributor

I'm not sure if it's clear to everyone but I think the process with external PRs is still to merge into a new branch in the MESAHub repo (e.g. MESAHub:num-test-stanadard) so we can run the integrations tests, then we merge that into MESAHub:main.

I don't think I can do that since the branch doesn't exist (or at least not after the PR is created).

Yeah, as you say, I'm pretty sure someone with write access to MESAHub/mesa repo needs to do that. I'll ping @evbauer as someone who I think has handled that before, though I'm happy to do it this time.

@warrickball warrickball changed the base branch from main to vv/num-test-standard July 31, 2024 20:46
@warrickball
Copy link
Contributor

I just built VincentVanlaer:num-test-standard using MESA SDK 23.7.3 and got many warnings, which I'll summarise as

  • 271× Warning: Obsolescent feature: DO termination statement which is not END DO or CONTINUE with label ...
  • 56× Warning: Obsolescent feature: Shared DO termination label ...
  • 10× Warning: Obsolescent feature: Old-style character length at ...
  • 8× Warning: Obsolescent feature: Computed GOTO at ...

You can have a look at the output in one of the CI actions (e.g. the MESA SDK 23.7.3 build).

These are all in num itself, which I guess you haven't modernised but have somehow changed the compiler flags to no longer treat it as legacy code. Could you fix the relevant flag?

@VincentVanlaer
Copy link
Collaborator Author

I made the minimal changes necessary to make the files compile under -std=f2008, ignoring warnings since they just indicate what could be improved, but is still standard compliant. It's just a matter of dropping the final commit to get rid of them, but I would consider them a good reminder to fix these issues at some point in the future.

@warrickball warrickball merged commit b4c417f into MESAHub:vv/num-test-standard Aug 5, 2024
3 checks passed
@VincentVanlaer VincentVanlaer deleted the num-test-standard branch August 6, 2024 13:47
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.

3 participants