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
469 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
461 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
502 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
493 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
608 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
498 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
553 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
553 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
487 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
323 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
703 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
492 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
500 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
988 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
455 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
443 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
495 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
769 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
538 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
466 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
543 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
441 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
767 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
349 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
649 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
340 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
622 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
612 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

...