CASL / Futility

VERA Fortran Utilities
Other
44 stars 20 forks source link

Add replace_entry interface to ArrayUtils #282

Closed aarograh closed 4 years ago

aarograh commented 4 years ago

This allows a single entry of an array to be replaced by an array. It's basically a convenience function to handle certain types of array resize operations.

djabaay commented 4 years ago

Just curious @aarograh, where did you find yourself seeing this operation used a bunch?

aarograh commented 4 years ago

@HendersonSC I'm going to push up a unit test in a bit before we merge this

@djabaay I reworked editsFactory in MPACT and there are several spots I use this there to expand the user-defined edits groups

HendersonSC commented 4 years ago

Yeah good point, this is why I shouldn't review thing later in the night.

HendersonSC commented 4 years ago

Unit test is definitely a good add. I am good with this as is.