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
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- What does: "char *argv[]" mean?
- How to populate two dimensional array
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- Function is returning undefined but should be returning a matched object from array in JavaScript
- The rules of Conway's Game of Life aren't working in my Javascript version. What am I doing wrong?
- Array related question, cant find the pattern
- Setting the counter (j) for (inner for loop)
- I want to flip an image (with three channels RGB) horizontally just using array slicing. How can I do it with python?
- Numpy array methods are faster than numpy functions?
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- How to return array to ArrayPool when it was rented by inner function?
- best way to remove a word from an array in a react app
- Vue display output of two dimensional array
- Undot Array with Wildcards in Laravel
Related Questions in FORTRAN
- Writing code for River Section Coordinates in Fortran
- How to get size of array directly from Fortran to R?
- OpenMP multi-threading not working if OpenMPI set to use one or two MPI processor
- Problems with converting old Fortran code
- Why is my code crashing with "Illegal address during kernel execution" when I use subroutines to copy or deallocate members of derived type variables?
- Getting distances of points in 2D space in an array in Fortran using the concept of broadcasting (Python)
- Conflict between lexer rules in ANTLR4 for Fortran grammar
- how to automatically generate a Module from a project in Visual Studio
- I am encountering an f2py dimension error when passing numpy array to fortran
- Why is there an error with gfortran but ifort and pgf90 do not?
- Parallelize nested loop with running sum in Fortran
- Calling c++ from fortran
- Visual Studio Code Not Recognizing findent Installation for Modern Fortran Extension Despite Correct Python Interpreter and PATH Configuration
- Different floating point representations of identical 64 bit double precision numbers
- How to define a Function in Fortran
Related Questions in FORTRAN90
- Error: Unexpected data declaration statement AND symbol has no IMPLICIT type
- Fortran 95, How to read blank (letter space) character from the end of the line?
- How can I get MPI module to work with Fortran using Code:Blocks on Windows 10?
- Why is this simple Fortran matrix inversion code not returning the expected value with LAPACK?
- Does Fortran store values in an array differently than a non-array declared variable?
- Error: 'mask' argument of 'count' intrinsic at (1) must be a logical array
- find and modify highest n values in a 2D array in fortran
- Including/omitting write statement changes code output in Fortran
- How do I nest an array of strings inside another array in Fortran
- Difference in Matrix operations with very small values on Eigen (C++) vs Fortran 90
- Fortran rounding decimals to .0 from netcdf file
- How to find minimum of each column in Fortran and sum op all elements of that column?
- Bisection method in fortran with compilating error
- Fortran 90 to Fortran 2003 : pointer undefined reference
- 'Random' "Program received signal SIGABRT: Process abort signal." Error
Related Questions in FORTRAN77
- Standard conforming way to get command line arguments in FORTRAN77
- Compile legacy fortran77 code as python module using f2py
- Can an f77 subroutine be called from C?
- How to rewrite code with SAVE and ENTRY statements for OpenMP usage?
- ASC2EPH ASCII to Binary conversion
- 'Random' "Program received signal SIGABRT: Process abort signal." Error
- FORTRAN 77 comments starting at column 7
- Segmentation fault due to memory access issue
- f2py compiling f77 program with exposed variables
- Resolving Fortran compilation error for `call itime(now)`, `error #6404: This name does not have a type, and must have an explicit types`
- Fortran 77 compilation for IRI 2016 model
- How to deal with the intrinsic funtion when using f2py module?
- Fortran Help, open statement error any idea?
- Is it necessary to place an ampersand on the 73rd column for line continuations in Fortran 77?
- How to write long string variables in Fortran 77
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 # Hahtags
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.