tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Fortran90 Help
@ 2005-06-28 13:37 Padiyath Sreekumaran
  2005-06-28 14:54 ` Sleeping Processes Jonathan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Padiyath Sreekumaran @ 2005-06-28 13:37 UTC (permalink / raw)



   Hello,
   Iam using Fortran90 to compile a program which I have
   received. I get a lot of compilation errors when I compile
   with f90 -c prog.f90 the enclosed subroutine.
   Can any one help please?. Iam enclosing the subroutine.

   Thanks in advance,
     Kumar

Prog.f90 file contents:
=======================

MODULE daten
  

  USE types

  TYPE geometrietyp
     INTEGER                     :: zonenanzahl
     INTEGER                     :: XYZzonenanzahl(3)
     REAL(dp) , ALLOCATABLE      :: Xzonengrenze(:)
     REAL(dp) , ALLOCATABLE      :: Yzonengrenze(:)
     REAL(dp) , ALLOCATABLE      :: Zzonengrenze(:)
     TYPE(zonentyp),POINTER              :: Zone(:)
  END TYPE geometrietyp

  TYPE zonentyp
     INTEGER                     :: blockanzahl
     INTEGER                     :: XYZblockanzahl(3)
     REAL(dp) , ALLOCATABLE      :: Xblockgrenze(:)
     REAL(dp) , ALLOCATABLE      :: Yblockgrenze(:)
     REAL(dp) , ALLOCATABLE      :: Zblockgrenze(:)
     TYPE(bloecketyp),POINTER :: BLOCK(:)
  END TYPE zonentyp

  TYPE bloecketyp
     INTEGER                     :: sektoranzahl
     INTEGER                     :: sektorflaechenanzahl
     INTEGER , ALLOCATABLE       :: Sektorflaechen(:)
     TYPE(sektorentyp),POINTER   :: Sektor(:)
  END TYPE bloecketyp

  TYPE sektorentyp
     INTEGER                     :: mediennummer
     INTEGER                     :: grenzflaechenanzahl
     INTEGER , ALLOCATABLE       :: Grenzflaechen(:)
     INTEGER                     :: positive
     INTEGER                     :: negative
  END TYPE sektorentyp

  !--------------------------------------

  TYPE quadrat_oberflaechentyp
     REAL(dp)                    :: koeff(10)
  END TYPE quadrat_oberflaechentyp

  !--------------------------------------

  TYPE punkttyp
     INTEGER                     :: zonenanz
     INTEGER , ALLOCATABLE       :: Zonennummer(:)
     TYPE(punktzonentyp),POINTER :: Zn(:)
  END TYPE punkttyp

  TYPE punktzonentyp
     INTEGER                     :: blockanz
     INTEGER , ALLOCATABLE       :: Blocknummer(:)
     TYPE(punktblocktyp),POINTER :: Bl(:)
  END TYPE punktzonentyp

  TYPE punktblocktyp
     INTEGER                     :: sektoranz
     INTEGER , ALLOCATABLE       :: Sektornummer(:)
     INTEGER , ALLOCATABLE       :: Mednummer(:)
     INTEGER                     :: flaechanz_block
     INTEGER , ALLOCATABLE       :: Flaech_block(:)
     INTEGER                     :: flaechanz_sektor
     INTEGER , ALLOCATABLE       :: Flaech_sektor(:)
  END TYPE punktblocktyp
  

  TYPE (geometrietyp)                         :: geom
  TYPE (quadrat_oberflaechentyp), ALLOCATABLE :: Flaechen(:)
  TYPE (punkttyp)                             :: punkt1
  TYPE (punkttyp)                             :: punkt2
  TYPE (punktblocktyp)                        :: punktb

  !REAL(dp),PARAMETER             :: epsi_dp = 0.0000000001_dp
  REAL(dp),PARAMETER             :: epsi = 0.00001_dp  ! für Zeit t
  !REAL(dp),PARAMETER             :: epsi_koeff = 0.05_dp  ! für Fläche
  REAL(dp),PARAMETER             :: epsi_koeff = 0.000001_dp  ! für Fläche
  INTEGER,PARAMETER              :: intvoid1 = 6666
  INTEGER,PARAMETER              :: intvoid2 = 1000
  INTEGER,PARAMETER              :: extvoid  = 0

END MODULE daten
------------------------------------------------------------------
Padiyath Sreekumar       |   Tel: +41.56.310.3643
Paul Scherrer Institut   |   email: kumar.padiyath@psi.ch
AIT                      |   Office: WHGA/U132 
WHGA/U132                |   Fax: +41.56.310.3649
CH-5232 Villigen PSI     | 
Switzerland              |
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Sleeping Processes
  2005-06-28 13:37 Fortran90 Help Padiyath Sreekumaran
@ 2005-06-28 14:54 ` Jonathan Williams
  2005-06-28 15:24   ` SUMMARY: " Jonathan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Jonathan Williams @ 2005-06-28 14:54 UTC (permalink / raw)


We had some problems with our new GS1280 last week, and since then the
question of system tuning in general has come up.  One of the questions came
up was about our application server.

The Application server is an ES80, running Tru64 Unix 5.1b, pk4.  It runs a
proprietary application that consists of many (well...about 50 or so)
individual programs that are each attached to their own queue.  They
basically just wait around until something is in their queue, then do it
real quick, and go back to waiting.

While the queues are waiting, the processes are in a SLEEP mode (going by
top, and ps), and then switch to running for a bit while they are doing
something, and then back to sleeping.

The question is, is there any amount of time involved in switching from
sleeping to running.  One of the programmers is thinking there is a way to
have the processes in a RUNNING state all the time--I'm not sure if that's a
UNIX thing, or a programming thing.  But whether we want to change it
depends on whether or not there is any time (anything more than .1 sec)
wasted by switching from sleeping to running.  Or is it like a millionth of
a second or something negligible, in which case we don't really care.

So is this something people know?  Or something I can measure myself?  Any
help, or pointers in the right direction would be greatly appreciated.  TIA

-Jonathan Williams



^ permalink raw reply	[flat|nested] 3+ messages in thread

* SUMMARY: Sleeping Processes
  2005-06-28 14:54 ` Sleeping Processes Jonathan Williams
@ 2005-06-28 15:24   ` Jonathan Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Williams @ 2005-06-28 15:24 UTC (permalink / raw)


Ok.  I got two responses, and I don't think I need to read any more.

The answer is...the way UNIX does it, is the only efficient way to do it.
And I won't gain anything by changing the way UNIX does it.

Thanks for Dr Thomas Blinn and Marc Baudoin.  :)

-Jonathan Williams

-----Original Message-----
From: tru64-unix-managers-owner@ornl.gov
[mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Jonathan
Williams
Sent: Tuesday, June 28, 2005 9:55 AM
To: tru64-unix-managers@ornl.gov
Subject: Sleeping Processes


We had some problems with our new GS1280 last week, and since then the
question of system tuning in general has come up.  One of the questions came
up was about our application server.

The Application server is an ES80, running Tru64 Unix 5.1b, pk4.  It runs a
proprietary application that consists of many (well...about 50 or so)
individual programs that are each attached to their own queue.  They
basically just wait around until something is in their queue, then do it
real quick, and go back to waiting.

While the queues are waiting, the processes are in a SLEEP mode (going by
top, and ps), and then switch to running for a bit while they are doing
something, and then back to sleeping.

The question is, is there any amount of time involved in switching from
sleeping to running.  One of the programmers is thinking there is a way to
have the processes in a RUNNING state all the time--I'm not sure if that's a
UNIX thing, or a programming thing.  But whether we want to change it
depends on whether or not there is any time (anything more than .1 sec)
wasted by switching from sleeping to running.  Or is it like a millionth of
a second or something negligible, in which case we don't really care.

So is this something people know?  Or something I can measure myself?  Any
help, or pointers in the right direction would be greatly appreciated.  TIA

-Jonathan Williams




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-28 15:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-28 13:37 Fortran90 Help Padiyath Sreekumaran
2005-06-28 14:54 ` Sleeping Processes Jonathan Williams
2005-06-28 15:24   ` SUMMARY: " Jonathan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox