assumed shape461 (6/7/2012 4:08:44 PM) comp.lang.fortran Hi
is there a less verbose way of doing the following:
function f(a_in) result(r)
real, dimension(:,:,:,:,:), intent(in) :: a_in
real, dimension(size(a_in,1),size(a_in,2),size(a_in,3),size(a_in,4)... Daniel
OO getter and setter methods1291 (3/31/2012 2:35:27 PM) comp.lang.fortran Hi,
if you have a derived type with many private variables, how would you
write 'getter and setter methods' for them? I am thinking in terms of
readability, maintainability, efficiency, etc. Here an exam... Daniel
Overloading write command849 (3/31/2012 1:03:11 PM) comp.lang.fortran Hi,
is the following F2003 conforming:
type myStats
real :: avg
contains
procedure :: write => write_stats
end type myStats
Thanks!
Daniel
... Daniel
operating system commands687 (3/7/2012 11:12:49 AM) comp.lang.fortran Hi is there a portable way to issue a command to the OS from a Fortran program? The Intel Fortran Compiler provides the command system(string) as an extension, but I don't find anything similar in the book b... Daniel
read a linux path from file4182 (3/6/2012 9:07:55 PM) comp.lang.fortran Hi, I would like to read a Linux filesystem path from a textfile. However, the path separator in Linux is the same token as the end record token '/', eg. in ~/mypath/myfile. How can I read the whole path into... Daniel
read double precision2670 (3/5/2012 10:04:44 AM) comp.lang.fortran Hi instead of many words, here a small program program main implicit none integer, parameter :: & sp = kind(1.0), & dp = selected_real_kind(2*precision(1.0_sp))... Daniel
unformatted I/O21146 (2/22/2012 1:40:06 PM) comp.lang.fortran Hi consider the following example. .... real(wp), dimension(10,10) :: nt open(55,file='nt.unformatted',form='unformatted',iostat=err,action='write') write(55) nt close(55) open(55,file='nt.unformatted',for... Daniel
internal procedures as actual arguments1594 (9/9/2011 3:06:26 PM) comp.lang.fortran Hi F2008 specifies that internal procedures can be used as actual arguments. The two compilers that I use seem to already have implemented this feature (in their latest versions). My question (I hope it is ... Daniel
do loops vs array operations989 (8/7/2011 10:01:54 AM) comp.lang.fortran Hi is there a performance difference when I execute an operation on an array, versus splitting it up in do-loops which execute the same operation element-by-element? I am asking because in Matlab, there is ... Daniel
shape of procedure arguments536 (8/6/2011 4:39:14 PM) comp.lang.fortran Hi which of the two following styles would you prefer (and why). They differ only in the last two lines. I) module show_example implicit none contains pure real function example(my_array) use parameter... Daniel
Circular module dependency #215185 (3/1/2012 10:19:07 PM) comp.lang.fortran I have today spent some hours chasing a build problem that turned out to be caused by a circular module dependency. The circle in question contained just 3 files, but my Windows Developer Studio running IVF 1... noone3(2116)
read a linux path from file4182 (3/6/2012 9:07:55 PM) comp.lang.fortran Hi, I would like to read a Linux filesystem path from a textfile. However, the path separator in Linux is the same token as the end record token '/', eg. in ~/mypath/myfile. How can I read the whole path into... no.spam.address(65)
operating system commands687 (3/7/2012 11:12:49 AM) comp.lang.fortran Hi is there a portable way to issue a command to the OS from a Fortran program? The Intel Fortran Compiler provides the command system(string) as an extension, but I don't find anything similar in the book b... no.spam.address(65)
another question of style2272 (3/7/2012 11:23:52 PM) comp.lang.fortran The rules are that first the RHS of an expression is evaluated then that result is assigned to the LHS. If there are types of different precision in the RHS, then they are first converted, then the evaluatio... helbig(4870)
Overloading write command849 (3/31/2012 1:03:11 PM) comp.lang.fortran Hi,
is the following F2003 conforming:
type myStats
real :: avg
contains
procedure :: write => write_stats
end type myStats
Thanks!
Daniel
... no.spam.address(65)
OO getter and setter methods1291 (3/31/2012 2:35:27 PM) comp.lang.fortran Hi,
if you have a derived type with many private variables, how would you
write 'getter and setter methods' for them? I am thinking in terms of
readability, maintainability, efficiency, etc. Here an exam... no.spam.address(65)
OT: Google Groups spam gone?2656 (4/9/2012 10:30:20 PM) comp.lang.fortran Folks,
(At least those that don't filter out posts from Google Groups...),
It looks like Google finally cleaned up the spam that has been
flooding c.l.f for the last many, many months. I haven't seen
... Ken.Fairfield(491)
EXIT from DO WHILE loop542 (4/22/2012 3:47:49 AM) comp.lang.fortran Hi, I have a small program as follows.
---------------------------------------------------------
program test
implicit none
integer :: i ,j,k,l,m
m = 37
k = 0
do while (k<m)
do j = 1,3
do i = 1,2
k... rajkrai(12)
fortran90.org webpage643 (6/5/2012 6:04:23 AM) comp.lang.fortran Hi,
I wanted to publicly announce a modern Fortran webpage that I have
been working on for some time:
http://fortran90.org/
I am new to this group and I only started to use modern Fortran
on a daily ... ondrej.certik(3)