Re: C version of PCCM?


Subject: Re: C version of PCCM?
From: Peter Paul Smolka (smolka@uni-muenster.de)
Date: Fri Aug 07 1998 - 03:52:52 MDT


On Thu, 6 Aug 1998, Thomas Phan wrote:

> Date: Thu, 6 Aug 1998 11:08:27 -0700
> From: Thomas Phan <phantom@CS.UCLA.EDU>
> To: ccm-users@ncar.UCAR.EDU
> Subject: C version of PCCM?
>
> Hi, I was wondering if there is a C verson of PCCM available somewhere?
> I have converted the source code from the pccm 2.1 distribution from
> Fortran to C with f2c, but the program is failing. Any help would
> be greatly appreciated.
>

Hi,

Although it is not my issues to ask you why you tried this one thing:

If you intend to convert it to big PC:

Two hints:

(1) We (within IGCP-341) made a PC version of ccm3.6 (code and exe we
don t hide but we still do final testing). Speed: 35 minutes for
1 day on PentiumII/300 compared to 9 minutes according to
the manual. System: Windows NT 4.0

(2) The crucial points for conversion are:
(2a) File system: The c preprocessor cuts off many // and thus
     especially if continuation lines are included, causes problems.
(2b) Cray pointers (either you transfer them by hand to loops from
     large allocated arrays or you youse a compiler that handles them)
     I have some doubt whether f2c could handle this.
(2c) Local routines (datetime, getenv and derived directory paths,
and related).
And finally for the old up to ccm3.2 I guess the IEEE files:
8 byte reals, for byte integers, normal characters and preceding
/ following length fields such as in mainframe fortran of "good old
times".
For 3.2 we blew them up to ASCII.... and why not.

Most sincerely

Peter Smolka

>
>

Dr. Peter P. Smolka
University Muenster
Geological Institute
Corrensstr. 24
D-48149 Muenster

Tel.: +49/251/833-3989 +49/2533/4401
Fax: +49/251/833-3968 +49/2533/4401



This archive was generated by hypermail 2b27 : Thu Jun 01 2000 - 09:06:35 MDT