JohannesRS
Programmer
Ok, those are two questions.
First one: have anybody here already got an deallocation error (maybe with ifort 8.1)? I'm using it, and in a program with a hell of variables, I just tracked down an "forrtl: severe (174): SIGSEGV, segmentation fault occurred" error to the deallocation of a 4-dimensional array which is allocated. The funny part is that this is to be deallocated together with 2 others, that are properly deallocated, no messages, but doesn't matter the ordering, the program fails to deallocate THE ONE array. Have anyone got this sort of error? What was the cause? How did you go around it?
Second: I would like to use an "minloc" intrinsic on a vector (1D array) to get the position of its minimum value. No problem there, it gives me that, but as an array of one single position. What would be a good way to turn it on an integer? I'm looking for something less disgusting than an ugly use of "sum(minloc(vector))", which was the horroble way around I found. Any clues?
Thanks a lot in advance for any help on these issues.
First one: have anybody here already got an deallocation error (maybe with ifort 8.1)? I'm using it, and in a program with a hell of variables, I just tracked down an "forrtl: severe (174): SIGSEGV, segmentation fault occurred" error to the deallocation of a 4-dimensional array which is allocated. The funny part is that this is to be deallocated together with 2 others, that are properly deallocated, no messages, but doesn't matter the ordering, the program fails to deallocate THE ONE array. Have anyone got this sort of error? What was the cause? How did you go around it?
Second: I would like to use an "minloc" intrinsic on a vector (1D array) to get the position of its minimum value. No problem there, it gives me that, but as an array of one single position. What would be a good way to turn it on an integer? I'm looking for something less disgusting than an ugly use of "sum(minloc(vector))", which was the horroble way around I found. Any clues?
Thanks a lot in advance for any help on these issues.