Find Jobs
Hire Freelancers

modify Fortran declarations

$30-5000 USD

In Progress
Posted about 19 years ago

$30-5000 USD

Paid on delivery
Write a Python or Perl script to group variable declarations in Fortran functions and subroutines so that (1) function or subroutine arguments appear before declarations of local variables. The function declaration itself (the data type it returns) should appear after the argument declarations, on its own line. (2) within the subgroups of arguments and local variables, declarations of variables of the same type are aggregated when possible. For example, the declarations real z integer i integer j real y(4) integer k(3) real x can be aggregated as integer i,j,k(3) real z,y(4),x A statement is a declaration in Fortran if the first word is real, integer, character, logical, or type(foo), where "foo" can be any word. A 'kind' attribute of the form (kind=n) can appear after the real, integer, character, or logical keyword, and it should be regarded as part of the data type, so that integer (kind=4) i integer (kind=8) j would not be aggregated but integer (kind=4) i integer (kind=4) j would be aggregated to integer (kind=4) i,j Do NOT aggregate any declarations for which a comment (denoted by a leading !) appears on the same line, so integer i integer num_days ! number of days integer j would be aggregated as integer i,j integer num_days ! number of days Put a comment line ! local variables after the declaration of the function and subroutine arguments and before declaring the local variables. More detail are in the attachment. ## Deliverables Code that runs with Python 2.4 OR Perl 5.0. ## Platform Windows XP, but should be written in portable Python or Perl.
Project ID: 3584515

About the project

2 proposals
Remote project
Active 19 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $136 USD for this job
User Avatar
See private message.
$212.50 USD in 7 days
5.0 (620 reviews)
7.7
7.7
User Avatar
See private message.
$59.50 USD in 7 days
4.6 (11 reviews)
4.1
4.1

About the client

Flag of UNITED STATES
Holliston, United States
5.0
16
Member since Jun 3, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.