According to my search, array slicing feature was added first in Fortran 90. I need something similar to this feature in FORTRAN 77. I have a matrix and I just want to pass one row of it to subroutine. Actually I can assign the values at that row to another array but I want something practical and fast. Is there any trick for that?
Array slicing in FORTRAN 77
1.2k Views Asked by Cagatay At
1
There are 1 best solutions below
Related Questions in ARRAYS
- Two different numbers in an array which their sum equals to a given value
- how to fill out the table with next values in array with one button
- How to sort a multi-dimensional array by the second array in descending order?
- Looping over defined array elements in Fortran
- Array appending after each onclick and loop in javascript
- PHP : How can I check Array in array?
- store numpy array in mysql
- Java Assign a Value to an array cell
- Saving FileSystemInfo Array to File
- Notice: Undefined offset: 1, but there is such offset
- How can I determine the index of the same set of characters between two strings that are of different lengths?
- Caused by: java.lang.ArrayIndexOutOfBoundsException: length=8; index=8
- Pull out first occurrences from array
- How to read a file then store to array and then print?
- C++ won't read in scientific notation data from a .txt file
Related Questions in FORTRAN
- Looping over defined array elements in Fortran
- Is it safe to list optional fortran function argument in OpenMP shared clause?
- Equivalent to asm volatile in Gfortran?
- gfortran does not find symbol fabsq_ in libquadmath
- Assigning values of an array in a loop
- Data exchange - Python and Fortran
- ieee_arithmetic intrinsic module in gfortran
- How to initialize two distinct blacs contexts?
- Fortran Debugging
- need to get f2py working, but don't know any fortran
- Combine Fortran .for and .f90 include header files
- How to parallelize csh script with nested loop
- VS2013 integration with Intel Fortran Compiler
- Windows 8.1 Pro MinGW Gfortran Command Prompt 'not recognized command' error
- How does automatic typecasting (type conversion) work in Fortran?
Related Questions in FORTRAN90
- Assigning values of an array in a loop
- How does automatic typecasting (type conversion) work in Fortran?
- Fortran DO loop, warning to use integer only
- Array slicing in FORTRAN 77
- Fortran derived type in common: initialization?
- Fortran: makefile error
- Ambiguous reference to variable
- Unclassifiable statement at (1) in Fortran
- unformatted output with wild card in Fortran
- Sum and Construct an Array in one statement
- Subroutine Name Fortran Name
- Fortran calculate distance of many points to fixed point
- What is the purpose of result variables in Fortran?
- What does 0.0_p2 mean?
- How to initialize array of integer kind 8 in fortran?
Related Questions in FORTRAN77
- Fortran Debugging
- Array slicing in FORTRAN 77
- Fortran compiler for mac to read program
- Incompatible ranks 0 and 2 in assignment
- Fortran issue with undefined statements in subroutine
- Fortran issue: Argument of "xx" is one type at (2) but is some other type at (1)
- Compiling three files fortran 77 "Line too long"
- fortran 77 conflicting types in external
- How to determine the file location in Fortran called from vba excel
- How to read data into an array
- How to initialize array of integer kind 8 in fortran?
- Make error on Mac OS X: libtool: compile: unrecognized option `-c'
- what is the difference between INCLUDE 'param.inc' and INCLUDE 'param.fi'?
- Why is this test FFT program giving incorrect results?
- Julia (Julia-lang) Performance Compared to Fortran and Python
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You note in the comments that you are using Intel Fortran 12.0. This compiler is a modern Fortran compiler with partial Fortran 2003 and limited Fortran 2008 support. As such, this compiler supports array slicing, so you shouldn't have any problems using that syntax in your code.
If you concern is maintaining pure FORTRAN 77 code, I personally wouldn't worry about that unless you were limited to using ancient compilers. All of the major vendors distribute modern Fortran compilers and a standard FORTRAN 77 program is also a valid Fortran 90 program. Unless you are forcing the compiler to use strict FORTRAN 77 compliance (and as so much old FORTRAN code uses non standard extensions, I find this unlikely; nor do I see a way in intel fortran to do this) there should be no issues introducing Fortran 90 syntax into your program.