Discussion Overview
The discussion revolves around handling arrays in Fortran g77, focusing on obtaining indices of non-zero elements, passing arrays to functions, and combining arrays. Participants explore various methods and potential libraries or functions that could assist with these tasks.
Discussion Character
- Technical explanation
- Exploratory
- Debate/contested
Main Points Raised
- Some participants inquire about how to determine the index of non-zero elements in an array and suggest using a loop to count non-zero cells.
- There is a discussion on how to pass an entire array to a function, with one participant suggesting the use of 'call function(array)' rather than indexing.
- Participants express uncertainty about the ease of combining arrays, with one asking for clarification on what is meant by "easier than." Another participant mentions that standard Fortran 77 lacks intrinsic functions for array operations.
- Concerns are raised about seeing many zeros when writing an array to a file, with questions about whether these represent empty cells or other issues, and a request for a specific code example to clarify the situation.
- One participant explains that when passing an array, the starting address of the array is passed, and discusses how to pass multi-dimensional arrays, including the need to specify the leading dimension.
Areas of Agreement / Disagreement
Participants do not reach a consensus on the best methods for handling arrays, as multiple approaches and uncertainties are presented throughout the discussion.
Contextual Notes
There are limitations in the discussion regarding the specific capabilities of g77 and the lack of intrinsic functions in standard Fortran 77 for certain array operations. Additionally, the description of the issue with zeros in the output is vague, leaving room for interpretation.