Thanks very much! If I understand you right, by using your module the compiler will be able to distinguish allocatable arrays and pointers (and calls the respective subroutine), but it won’t be able to distinguish between allocatable arrays and non-allocatable ones. Is it because arrays don’t have an attribute that labels them as allocatable or non-allocatable?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Size of an unallocated array
|
67 | 2838 | November 5, 2022 | |
| Allocatable array as function dummy argument | 11 | 960 | February 10, 2025 | |
| Dummy pointers to actual non-pointers allocatable targets | 16 | 602 | February 19, 2023 | |
| How to have a generic interface for both allocatable and non allocatable dummy? | 22 | 870 | July 20, 2023 | |
| Overloading functions with optional arguments | 24 | 2339 | June 30, 2021 |