Returning a dynamic character array based on input
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 24 articles for 0.035 sec
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: Ragu
Date: Sep 11, 2008 08:19

... sep, 22:20, Ragu <ssragun...@gmail.com> wrote: I have a simple question regarding allocating a character array that can represent a line in an input file. I am writing a small function that can read a line from an input file, strip the Fortran 90 style comments (Exclamation mark) and return the string. You can have a look at my Flibs project (...
Show full article (0.76Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: Arjen Markus
Date: Sep 10, 2008 23:56

...10 sep, 22:20, Ragu <ssragun...@gmail.com> wrote: I have a simple question regarding allocating a character array that can represent a line in an input file. I am writing a small function that can read a line from an input file, strip the Fortran 90 style comments (Exclamation mark) and return the string. You can have a look at my Flibs project (http...
Show full article (0.46Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: Sjouke Burry
Date: Sep 10, 2008 15:59

...regarding allocating a character array that can represent a line in an input file. First, please note that you are... That being said... I want the returned string's length to be dynamic and equal to ... like looking for a string termination character). Each line in a text file ... the comments. Ragu Sankaranarayanan If your input file has random line length, there...
Show full article (2.69Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: Ragu
Date: Sep 10, 2008 14:54

... regarding allocating a character array that can represent a line in an input file. First, please note that you are ... That being said... I want the returned string's length to be dynamic and equal to the...actual length of the line in the input file (minus comments). Something like TRIM(... like looking for a string termination character). Each line in a text file ...
Show full article (2.43Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: nospam
Date: Sep 10, 2008 14:20

...allocating a character array that can represent a line in an input file...> want the returned string's length to be dynamic and equal to...pretty straightforward. You just make the character allocatable length and use an allocate...to use very constructively without allocatable character strings in the calling procedure. ...around the lack of allocatable-length character strings by using an allocatable ...
Show full article (4.31Kb) · Show article thread
Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: Ragu
Date: Sep 10, 2008 13:20

... allocating a character array that can represent a line in an input file...90 style comments (Exclamation mark) and return the string. Currently, I had ...I want the returned string’s length to be dynamic and equal to... 0) then cycle readfrmfile else return end if end do readfrmfile ... variables integer :: n, length ! -- Copy input string outstring = inpstring length = LEN(...
Show full article (3.15Kb)
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: James Parsly
Date: Sep 11, 2008 07:52

... a big honkin' double precision array and carves it up as ... of the big double precision array to a routine and use ... long ago that Fortran had *NO* dynamic allocation of any kind.... the beginning you allocate one humongous array X, and put the ... works. To pass a workspace array of length 100 to a...call workroutine(x(temp)) ! passes array address nextavail = temp !deallocates The...
Show full article (1.99Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: glen herrmannsfeldt
Date: Sep 10, 2008 22:48

...wrote) At the beginning you allocate one humongous array X, and put the array and ... the past. And I suppose it is dynamic in that you are dynamically allocating space within the array to your different purposes. But at the ...static. There is just that one big array that you statically allocated at first. If... you know that amount, you make the array big enough to use it all. That...
Show full article (0.93Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: George McBane
Date: Sep 10, 2008 19:51

...least so I read it) about just plain old Fortran integers used as index values into an array. They aren't "pointers" in any sense known to the language, but you can think of an array index as in some sense pointing to a location in the array. That's perfectly standard and portable. Richard has it right. Plain old integer array index. -George.
Show full article (0.39Kb) · Show article thread
Re: Returning a dynamic character array based on input length     

Group: comp.lang.fortran · Group Profile · Search for Returning a dynamic character array based on input in comp.lang.fortran
Author: George McBane
Date: Sep 10, 2008 19:49

... language level, it is static. There is just that one big array that you statically allocated at first. If it isn;t big enough... particular run requires more memory than you allocated in that one big array, the program terminates with a message like "you need to increase the... ones much used in "old times" was to put that one array in blank common and count on being able to exceed its declared...
Show full article (1.11Kb) · Show article thread
1 · 2 · 3 · next