My experiences are very similar. To get a radiation transport FEM code (7D) to have adaptive meshing I had to jump through all sorts of hoops. I opted for @certik 's solution, using a 1D array and storing separately the indices to access it. Honestly though, it made for an extremely frustrating and unnatural development experience. Having the ability, efficiently and laconically append/reallocate/resize Fortran arrays would have made a big difference.
gnikit
21
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Do we need REALLOCATE? | 22 | 4823 | April 25, 2021 | |
| Enhancements to allocatable arrays | 23 | 2035 | December 19, 2023 | |
| Inquire status of (non)allocatable arrays | 16 | 1033 | November 5, 2023 | |
| MOVE_ALLOC to grow an array | 21 | 3704 | September 6, 2022 | |
| REALLOCATABLE attribute | 39 | 1770 | November 5, 2023 |