Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6796489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:29:43+00:00 2026-05-26T18:29:43+00:00

I am trying to read some Fortran code, but can not determine what the

  • 0

I am trying to read some Fortran code, but can not determine what the % (percentage sign) does.

It is in a line like:

   x = a%rho * g * (-g*a%sigma + m%gb * m%ca * (1.6 * a%rho+g))

What does it do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:29:43+00:00Added an answer on May 26, 2026 at 6:29 pm

    In Fortran 90 they allow you to create structures like in C++. It basically acts as the dot (.) operator.

    From http://www.lahey.com/lookat90.htm :

    Structures (Derived Types)

    You can group your data using derived types. This enables users to combine intrinsic types (including arrays and pointers) into new types whose individual components can be accessed using the percent sign as a delimiter. (Derived types are known as records in VAX Fortran.)
    ! Example using derived types and modules.

    module pipedef
       type pipe                          ! Define new type 'pipe', which
         real diameter                    ! is made up of two reals, an
         real flowrate                    ! integer, and a character.
         integer length
         character(len=10) :: flowtype
       end type pipe
    end module pipedef
    
    program main
       use pipedef                ! Associate module pipedef with main.
       type(pipe) water1, gas1    ! Declare two variables of type 'pipe'.
       water1 = pipe(4.5,44.8,1200,"turbulent") ! Assign value to water1.
       gas1%diameter = 14.9                     ! Assign value to parts
       gas1%flowrate = 91.284                   ! of gas1.
       gas1%length = 2550
       gas1%flowtype = 'laminar'
       .
       .
       .
    end program
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to read some code that I did not write. In the
I am trying to read some smps files with python, and found a fortran
I am trying to read command lien argument but it seems there is some
I am trying to read some objects from a file. The code works fine
I'm trying to read some of other people's code, both to help me learn
I am trying to read some Java code from a tutorial, I don't understand
I am trying to read through some code and it would be helpful if
I'm trying to read some text from a .txt file, here's my code: String
I am trying to read into some existing and unmounted esent database files (like
I am trying to read some code that has a lot of macros in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.