Discussion Overview
The discussion revolves around the possibility of reading input data from an Excel file into a FORTRAN program, specifically focusing on the importation of coordinate data for a pipe layout. Participants explore methods for transferring data from Excel to FORTRAN, including file formats and coding issues.
Discussion Character
- Technical explanation
- Debate/contested
- Mathematical reasoning
Main Points Raised
- One participant expresses a preference for using Excel to prepare coordinate data instead of generating it within FORTRAN, seeking a method to import this data.
- Another participant suggests exporting the Excel data as a CSV file, indicating that this format can be read into FORTRAN.
- A participant shares their FORTRAN code attempting to read coordinates from a CSV file but encounters an error at the read command, questioning how to handle cell separation in FORTRAN.
- Another participant points out that a CSV file does not use tabs or next cell indicators, but rather commas to separate values, implying that the participant needs to account for this in their code.
- One participant advises using list format input in FORTRAN to handle commas automatically, while also noting potential bugs in the provided code, such as writing uninitialized variables and incorrect array indexing.
Areas of Agreement / Disagreement
Participants have not reached a consensus on the best approach to read data from Excel into FORTRAN, with differing opinions on coding practices and file handling. The discussion remains unresolved regarding the specific implementation details and potential errors in the code.
Contextual Notes
Limitations in the discussion include unclear handling of CSV formatting in FORTRAN, potential bugs in the provided code, and the need for further clarification on the expected output format.