I write code based on modern Fortran. For some reason, I want to modify it in a way that is compatible with the old version. Converting from the latest version to version 95 is desirable here. I have trouble with two intrinsic functions. "Mov_alloc" and "Norm2" are parts of these functions. I want to know: are there any intrinsic functions for them in Fortran 95? Or, are there any external functions that do the same job precisely?
Find an alternative for norm2() and move_alloc() in Fortran 95
218 Views Asked by MOSTAJKIR At
1
There are 1 best solutions below
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 FORTRAN95
- Passing a subroutine as an arugment to another subroutine
- Somewhat Variadic function in Modern Fortran
- Optimizing the addition of a symmetric banded matrix stored as a 1D array to a general 2D array
- What is the best way to "combine" two Fortran subroutines with very similar functionalities but slight differences?
- How to remove the empty space in the output columns in Fortran?
- What does module procedure do inside interface blocks in Fortran?
- Fortran Help, open statement error any idea?
- Is there a way to assign values to a multidimensional array in Fortran without using nested loops?
- Assign fill value to variable if it does not equal to certain values
- Problem with writing .dat files using Fortran
- Compile Fortran Function using gfortran: object file was built for newer macOS version than being linked
- Error: Unclassifiable statement at (1)? At line under do while statement
- Double precision in Fortran for trignometric functions
- What shall be used in recl when opening a file in unformatted direct access?
- Why I get Corrupted module compiling message while trying to put derived types in a module?
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 can easily implement
norm2()yourself based on the definition. Some care must be taken if your numbers are so large that overflow is an issue. But the simplest version is as simpleThere is no equivalent of
move_alloc()in Fortran 95. You may need to use pointers instead of allocatable variables. You could implement your own version in C, but that would require many features from Fortran 2003-2018, so it makes little sense for you.You can consider reallocating your arrays yourself and copying the data instead of doing
move_alloc():However, it is not the same as
move_alloc().