moose icon indicating copy to clipboard operation
moose copied to clipboard

Migrate NEML2 integration from blackbear to tensor mechanics

Open dschwen opened this issue 2 years ago • 16 comments

Closes #26450

See also idaholab/blackbear#334

dschwen avatar Jan 02 '24 22:01 dschwen

Job Documentation on 0a6c7f5 wanted to post the following:

View the site here

This comment will be updated on new commits.

moosebuild avatar Jan 03 '24 00:01 moosebuild

Job Precheck on 0fe98d9 wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s https://mooseframework.inl.gov/docs/PRs/26457/clang_format/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format ad409367e365d3227cf9c1a0df63b3b9cde9b916

moosebuild avatar Jan 09 '24 22:01 moosebuild

Ok, this should be ready. It builds successfully with NEML2 and passes the tests.

dschwen avatar Jan 09 '24 22:01 dschwen

Job Coverage on 0a6c7f5 wanted to post the following:

Framework coverage

c581c9 #26457 0a6c7f
Total Total +/- New
Rate 85.10% 85.10% +0.00% 0.00%
Hits 98663 98665 +2 0
Misses 17273 17272 -1 1

Diff coverage report

Full coverage report

Modules coverage

Inconsistent report tags were found between the head and base reports. This can happen when reports are missing from either the head or the base.

Inconsistent tags: module-tensor_mechanics-torch

Chemical reactions

c581c9 #26457 0a6c7f
Total Total +/- New
Rate 92.53% 92.48% -0.05% 50.00%
Hits 1437 1438 +1 1
Misses 116 117 +1 1

Diff coverage report

Full coverage report

Full coverage reports

Reports

Warnings

  • framework new line coverage rate 0.00% is less than the suggested 90.0%
  • chemical_reactions new line coverage rate 50.00% is less than the suggested 90.0%

This comment will be updated on new commits.

moosebuild avatar Jan 10 '24 04:01 moosebuild

@dschwen you can let me know when you're ready for a review for the switching configuration

loganharbour avatar Jan 10 '24 14:01 loganharbour

@dschwen you can let me know when you're ready for a review for the switching configuration

I'll address @GiudGiud 's review and prepare a PR for blackbear to remove everything NEML2. But functionally this is complete.

dschwen avatar Jan 10 '24 15:01 dschwen

I suppose the best cause of action would be to remove NEML2 from Blackbear first so that we can see a clean pass on this PR.

dschwen avatar Jan 10 '24 15:01 dschwen

For coverage I'm seeing

Not compiling MOOSE with NEML2 because NEML2_DIR is not a valid NEML2 checkout and/or libtorch is not enabled.

Also, while the thermochimica and NEML2 submodules are initialized they are not recursively initialized. This would lead to NEML2 build failures. (@loganharbour)

dschwen avatar Jan 16 '24 05:01 dschwen

We cannot recursively enable submodules. Think about what would happen if you did this in Direwolf or BlueCRAB. We do have a mechanism though for enabling nested submodules though.

permcody avatar Jan 17 '24 01:01 permcody

We cannot recursively enable submodules. Think about what would happen if you did this in Direwolf or BlueCRAB. We do have a mechanism though for enabling nested submodules though.

We can in moose. In most targets. And we'll need to until this is in.

loganharbour avatar Jan 17 '24 01:01 loganharbour

We do nested submodules for sure and it works well. I can see us adapting the recipes for the transition period if you want to do that.

GiudGiud avatar Jan 17 '24 02:01 GiudGiud

should this go in the solid properties module instead?

nope

loganharbour avatar Jan 17 '24 21:01 loganharbour

Yeah I guess constitutive models arent the same as properties. TM works for me

GiudGiud avatar Jan 17 '24 21:01 GiudGiud

Job Precheck on adc94f7 wanted to post the following:

A change of the following file(s) triggered this check:

petsc

The following file(s) are unchanged:

conda/mpich/conda_build_config.yaml conda/petsc/meta.yaml

The PETSc submodule or configuration was changed but the conda build config was not

moosebuild avatar Jan 23 '24 17:01 moosebuild

Job Precheck on adc94f7 wanted to post the following:

A change of the following file(s) triggered this check:

libmesh

The following file(s) are unchanged:

conda/mpich/conda_build_config.yaml conda/libmesh/meta.yaml

The libmesh submodule or configuration was changed but the conda build config was not

moosebuild avatar Jan 23 '24 17:01 moosebuild

@dschwen Could you add a news entry for this?

cticenhour avatar Jan 23 '24 18:01 cticenhour