Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged fortran

0 votes
460 views
1 answer
    I would like to calculate gamma(-170.1) using the program below: program arithmetic ! program to do a calculation real ... x as I've defined it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
447 views
1 answer
    I've quite new to Fortran and OpenMP, but I'm trying to get my bearings. I have a piece of code for ... PARALLEL Thanks very much in advance! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
485 views
1 answer
    I am using gfortran in MinGW under Windows 7 (32bit) to compile Fortran code. Here is the minimal code contained ... What is the problem here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
483 views
1 answer
    I would like to check if a pointer inside a derived type has already been defined or not. I wrote the ... thanks in advance for your help! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
601 views
1 answer
    I'm attempting to recode an old C++ program in Fortran to make use of LAPACK (I'm aware that C++ does ... this in Fortran is not an option. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    I recently updated my .f90 code to .f03, and I was expecting to see speedup because my older version ... on this is greatly appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
544 views
1 answer
    I have the following code in FORTRAN 77: REAL*8 :: dm dm=1.-1.E-12 write(6,*) 'dm: ', dm I get: ... OK? I would like to get dm=0.999999999999 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
547 views
1 answer
    Say we have this variable definition Real*8, Dimension(:), Allocatable :: dblA Allocate (dblA(1000)) Now I ... practice? Should I avoid this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
477 views
1 answer
    Recently, I read a post on Stack Overflow about finding integers that are perfect squares. As I wanted to play ... looks like they fixed that. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
316 views
1 answer
    Do I necessarily need to specify D (e.g., 1.234D+00) at the end of all magic numbers ( ... already declared everything double precision anyway? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
694 views
1 answer
    I am writing code to add on a closed-source Finite-Element Framework that forces me (due to relying on some ... to an assumed size array. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
483 views
1 answer
    I've noted that if I use integer(16) variables, when I use print, the output contains the exact number of ... Does anyone know why this occurs? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
493 views
1 answer
    I am quite new to Fortran and I was 'playing' with functions. I found a quite weird behavior in a very ... . What am I missing here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
981 views
1 answer
    I kindly request your help on this code where I kept on getting an error: Rank mismatch in array reference at ... 2 enddo enddo enddo return END See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
448 views
1 answer
    I have a subroutine (minimal example) subroutine treatfunction(f,input,output) external, real::f real, intent(in ... subroutine is not elegant. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
432 views
1 answer
    I am trying to write a makefile for compiling a program with source files with both .f and .f90 extensions. I ... with the .f files as well? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
484 views
1 answer
    I have created an allocatable array. I allocate the elements and then I print the size of the array. I find strange ... "fred: ", Size (fred) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
761 views
1 answer
    I wrote the following two lines in fortran C23456789 REAL H3 = 0 H3=H*H*H and I received the following ... current column used in the program. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
525 views
1 answer
    I'm learning Fortran and I'd like to encapsulate an array and a subroutine in a type. The ... something regarding dummy argument definition? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
459 views
1 answer
    Hey there, I have a very long list of shared variables in OpenMP so I have to split lines in fortran and use ... Any advices on how to do it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
522 views
1 answer
    I have the following question concerning the usage of optional argument. Let's say I have the following routine ... Thanks for your help. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
431 views
1 answer
    Consider: program main real, allocatable, dimension(:) :: foo integer n n=10 call dofoo(foo,n,1) allocate( ... behave in a system dependent way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
760 views
1 answer
    I have a Fortran 90 subroutine which takes a function as an argument, and I would like to pass a modified version ... be as hacky as you want. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
334 views
1 answer
    I have multiple subroutines with a parameter p which is an array of explicit size like subroutine foo(p) integer, ... on windows 7 64 bits). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
641 views
1 answer
    I just want to read a two-column text file with variable lines into an array. The first column of the text ... this error, thanks for any help. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
333 views
1 answer
    This is a bit complicated; I'd welcome any comments on how to improve the clarity of the question. Ok, ... derived type within a derived type? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
607 views
1 answer
    In order to traverse a linked list in Fortran, I use a pointer to the current element that is moved to the ... that intent(in) is not violated? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
602 views
1 answer
    I'm writing in fortran (90). My program must read file1, do something with every line of it and write ... a combination of text and numbers. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...