Re: Is there a way in Fortran to designate an integer value as integer*8 ?

Liste des GroupesRevenir à cl fortran 
Sujet : Re: Is there a way in Fortran to designate an integer value as integer*8 ?
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.fortran
Date : 23. Oct 2024, 01:42:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vf9gq5$1n96r$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
User-Agent : Mozilla Thunderbird
On 10/22/2024 5:21 PM, Lawrence D'Oliveiro wrote:
On Tue, 22 Oct 2024 00:07:41 -0500, Lynn McGuire wrote:
 
Here is one of my 197 common block include files, global.inc:
>
C  global.inc
C
C
C  11/21/19  Lynn McGuire  pmr 6299, add new ncp max used variable for chemtran
 Those are the sorts of things that belong in your version control
system.
 
...
 What, no “implicit none”? Or do you put this in the including files?
 
        integer MAX_NCP
        PARAMETER (MAX_NCP = 1000)
 All these pairs of lines can be replaced with single lines, e.g.
     integer, parameter :: MAX_NCP = 1000
 
       COMMON / GLOBAL / KTRACE, NCP, SETSTP, NDYNER, NERQQQ, LNOLIMIT,
       *                  do_not_call_pivf, do_not_call_adbf,
       *                  ne_did_not_converge, equipment_fail_count,
       *                  lrespect_user_pitch, do_not_call_threephs,
       *                  do_not_call_flai, do_not_call_liqh,
       *                  do_not_call_vaph, thermo_init_failed,
       *                  num_crude_streams, print_streams_for_each_unit,
       *                  do_not_call_solid_isothermal_flash,
       *                  ncp_max_used
>
        integer KTRACE
        integer NCP
        logical SETSTP
        integer NDYNER
        integer NERQQQ
        integer num_crude_streams
        logical LNOLIMIT
        logical do_not_call_pivf
        logical do_not_call_adbf
        logical lrespect_user_pitch
        logical do_not_call_threephs
        logical do_not_call_flai
        logical do_not_call_liqh
        logical do_not_call_vaph
        logical thermo_init_failed
        logical print_streams_for_each_unit
        logical do_not_call_solid_isothermal_flash
C        this is to record the ncp max used for chemtran since itchanges ncp on the fly
        integer ncp_max_used
 Much more concisely:
      module GLOBAL
         integer :: KTRACE, NCP, SETSTP, NDYNER, NERQQQ, num_crude_streams
         logical :: LNOLIMIT, do_not_call_pivf, do_not_call_adbf, lrespect_user_pitch, &
             do_not_call_threephs, do_not_call_flai, do_not_call_liqh, do_not_call_vaph, &
             thermo_init_failed, print_streams_for_each_unit, do_not_call_solid_isothermal_flash
        integer :: ncp_max_used
          ! this is to record the ncp max used for chemtran since itchanges ncp on the fly
     end module GLOBAL
 Then you just do “use GLOBAL” where you need these definitions.
 etc etc
I have "implicit none" in my first mandatory include for all 5,000+ subroutine files.
Lynn

Date Sujet#  Auteur
2 Oct 24 * Is there a way in Fortran to designate an integer value as integer*8 ?88Lynn McGuire
2 Oct 24 +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?66Lawrence D'Oliveiro
2 Oct 24 i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?65Lynn McGuire
3 Oct 24 i +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
3 Oct 24 i i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
3 Oct 24 i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?62Steven G. Kargl
3 Oct 24 i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?61Lynn McGuire
3 Oct 24 i   `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?60Steven G. Kargl
3 Oct 24 i    `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?59Lynn McGuire
3 Oct 24 i     +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Steven G. Kargl
3 Oct 24 i     i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Clive Page
4 Oct 24 i     i `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Steven G. Kargl
4 Oct 24 i     +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?37Lawrence D'Oliveiro
4 Oct 24 i     i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?36Lynn McGuire
4 Oct 24 i     i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?35Lawrence D'Oliveiro
4 Oct 24 i     i  +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?33Lynn McGuire
4 Oct 24 i     i  i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?32Lawrence D'Oliveiro
5 Oct 24 i     i  i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?31Lynn McGuire
5 Oct 24 i     i  i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?30Lawrence D'Oliveiro
5 Oct 24 i     i  i   `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?29Lynn McGuire
20 Oct 24 i     i  i    `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?28Lawrence D'Oliveiro
21 Oct 24 i     i  i     `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?27Lynn McGuire
21 Oct 24 i     i  i      `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?26Thomas Koenig
22 Oct 24 i     i  i       `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?25Lynn McGuire
23 Oct 24 i     i  i        `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?24Lawrence D'Oliveiro
23 Oct 24 i     i  i         +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lynn McGuire
23 Oct 24 i     i  i         i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
23 Oct 24 i     i  i         `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?21Lynn McGuire
23 Oct 24 i     i  i          `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?20Lawrence D'Oliveiro
23 Oct 24 i     i  i           `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?19Lynn McGuire
24 Oct 24 i     i  i            +- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
24 Oct 24 i     i  i            `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?17Thomas Koenig
26 Oct 24 i     i  i             `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?16Lynn McGuire
26 Oct 24 i     i  i              +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
26 Oct 24 i     i  i              i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
26 Oct 24 i     i  i              `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?13Thomas Koenig
26 Oct 24 i     i  i               +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?9Lawrence D'Oliveiro
26 Oct 24 i     i  i               i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?8Thomas Koenig
27 Oct 24 i     i  i               i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?7Lawrence D'Oliveiro
27 Oct 24 i     i  i               i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?6Thomas Koenig
27 Oct 24 i     i  i               i   +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Lawrence D'Oliveiro
29 Oct 24 i     i  i               i   i+- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
29 Oct 24 i     i  i               i   i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2James Kuyper
29 Oct 24 i     i  i               i   i `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Waldek Hebisch
29 Oct 24 i     i  i               i   `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
26 Oct 24 i     i  i               `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Lynn McGuire
26 Oct 24 i     i  i                `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Thomas Koenig
29 Oct 24 i     i  i                 `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
4 Oct 24 i     i  `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
13 Oct 24 i     `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?18Thomas Koenig
13 Oct 24 i      +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?5R Daneel Olivaw
13 Oct 24 i      i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Thomas Koenig
13 Oct 24 i      i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3R Daneel Olivaw
13 Oct 24 i      i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
17 Oct 24 i      i   `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
13 Oct 24 i      +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Gary Scott
13 Oct 24 i      i`- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
14 Oct 24 i      +- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire
14 Oct 24 i      `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?9Lynn McGuire
15 Oct 24 i       `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?8Thomas Koenig
15 Oct 24 i        +- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1R Daneel Olivaw
16 Oct 24 i        +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Lynn McGuire
16 Oct 24 i        i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Lawrence D'Oliveiro
17 Oct 24 i        i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lynn McGuire
17 Oct 24 i        i  `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
16 Oct 24 i        `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Lawrence D'Oliveiro
16 Oct 24 i         `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lawrence D'Oliveiro
3 Oct 24 +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?20R Daneel Olivaw
3 Oct 24 i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?19Steven G. Kargl
3 Oct 24 i `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?18R Daneel Olivaw
3 Oct 24 i  `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?17Lynn McGuire
4 Oct 24 i   `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?16Lawrence D'Oliveiro
4 Oct 24 i    `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?15R Daneel Olivaw
4 Oct 24 i     `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?14Lawrence D'Oliveiro
4 Oct 24 i      +* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Steven G. Kargl
5 Oct 24 i      i`* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2R Daneel Olivaw
5 Oct 24 i      i `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Steven G. Kargl
4 Oct 24 i      `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?10Gary Scott
5 Oct 24 i       `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?9Clive Page
5 Oct 24 i        `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?8Gary Scott
6 Oct 24 i         `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?7Lawrence D'Oliveiro
6 Oct 24 i          `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?6Gary Scott
6 Oct 24 i           `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?5Lawrence D'Oliveiro
6 Oct 24 i            `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?4Gary Scott
6 Oct 24 i             `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?3Lawrence D'Oliveiro
6 Oct 24 i              `* Re: Is there a way in Fortran to designate an integer value as integer*8 ?2Gary Scott
6 Oct 24 i               `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Gary Scott
5 Oct 24 `- Re: Is there a way in Fortran to designate an integer value as integer*8 ?1Lynn McGuire

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal