NQCDynamics.jl icon indicating copy to clipboard operation
NQCDynamics.jl copied to clipboard

Explicitly overwrite ArrayPartition definition.

Open Alexsp32 opened this issue 1 month ago • 0 comments

Julia v1.12 prescribes a particular format for multiple dispatch extensions of methods/structs from other packages now, we should follow it.

┌ NQCDynamics
│  WARNING: Constructor for type "ArrayPartition" was extended in `SurfaceHoppingMethods` without explicit qualification or import.
│    NOTE: Assumed "ArrayPartition" refers to `RecursiveArrayTools.ArrayPartition`. This behavior is deprecated and may differ in future versions.`
│    NOTE: This behavior may have differed in Julia versions prior to 1.12.
│    Hint: If you intended to create a new generic function of the same name, use `function ArrayPartition end`.
│    Hint: To silence the warning, qualify `ArrayPartition` as `RecursiveArrayTools.ArrayPartition` in the method signature or explicitly `import RecursiveArrayTools: ArrayPartition`.
└

Alexsp32 avatar Oct 14 '25 10:10 Alexsp32