CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

how can I generate new exe file in star-cd

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 24, 2003, 01:54
Default how can I generate new exe file in star-cd
  #1
David Baker
Guest
 
Posts: n/a
I use star-cd 3.15a, windows 2000 and absoft8.0.

I try to generate a new exe file in star-cd, but I can not.

This is the first error:

"Corrupt parm.inc file - exiting starlink."

Who know how can I generate a new exe file in windows version?

Is there any document about this topic?

Thanks,
  Reply With Quote

Old   August 25, 2003, 14:10
Default Re: how can I generate new exe file in star-cd
  #2
m-hack
Guest
 
Posts: n/a
Did you write the parm.inc with Prostar on that windows version? If not, thats the problem.
  Reply With Quote

Old   August 26, 2003, 00:08
Default Re: how can I generate new exe file in star-cd
  #3
David Baker
Guest
 
Posts: n/a
Yes, I write with pro-am on windows version. In other problem, I use udf too. I can not generate exe file.
  Reply With Quote

Old   August 27, 2003, 08:36
Default Re: how can I generate new exe file in star-cd
  #4
kevin
Guest
 
Posts: n/a
hmm, I would guess that there is a problem with running grep or sed under the pdksh on your machine...if you look at the starlink script, there is a line:

MAXDMN=`grep -i MAXDMN parm.inc | sed -e 's/.*=\(.*\)).*/\1/' -e 's/ //g'`

if you start up a command prompt, run the pdksh, then try executing

grep -i MAXDMN parm.inc | sed -e 's/.*=\(.*\)).*/\1/' -e 's/ //g'

see if it properly returns the value corresponding to MAXDMN in your parm.inc file.
  Reply With Quote

Old   August 27, 2003, 23:51
Default Re: how can I generate new exe file in star-cd
  #5
David Baker
Guest
 
Posts: n/a
Dear Kevin,

It returns 1

In parm.inc file I have PARAMETER (MAXDMN= 1).

What is MAXDMN? Does it have currect parameter?
  Reply With Quote

Old   August 28, 2003, 01:34
Default Re: how can I generate new exe file in star-cd
  #6
David Baker
Guest
 
Posts: n/a
Dear Kevin,

Below line in starlink does not work properly.

MAXDMN=`grep -i MAXDMN parm.inc | sed -e 's/.*=\(.*\)).*/\1/' -e 's/ //g'`

I add MAXDMN=1 after that and everything is OK now. But it is not good solution.

Why that line does not work properly?
  Reply With Quote

Old   August 28, 2003, 05:11
Default Re: how can I generate new exe file in star-cd
  #7
Michiel
Guest
 
Posts: n/a
I had a problem that was about the same. I solved it by adding the option -o to the grep command in starlink. It has something to do with the difference between the pksh and a normal csh. The output from grep is formatted just a little bit different this pksh. By adding the -o option this can probably be corrected. The line in starlink now looks like

MAXDMN='grep -i -o MAXDMN patm.inc | ser -e 's/.*=\(.*\)).*/\1/'-e 's/ //g''

I hope this works for you also

Michiel
  Reply With Quote

Old   August 28, 2003, 07:33
Default Re: how can I generate new exe file in star-cd
  #8
David Baker
Guest
 
Posts: n/a
Dear Michiel,

I use windows version of star-cd and grep.

There is not -o option for grep in windows version.

What is -o option? Is there another option for it?
  Reply With Quote

Old   August 28, 2003, 07:53
Default Re: how can I generate new exe file in star-cd
  #9
Michiel
Guest
 
Posts: n/a
The -o option comes from the MS-grep command. If you type 'grep ?' in dos command mode than you see what these options are.

grep ? tells you thatthat the -o options gives you the UNIX output format

Michiel

  Reply With Quote

Old   September 2, 2003, 05:39
Default Re: how can I generate new exe file in star-cd
  #10
Philip Jones
Guest
 
Posts: n/a
I think that maybe you have more than one copy of sed on your system. The sed to use is in $STARDIR/wingnu/bin and if you run pdksh and type sed you should see this: C:\>"c:\Program Files\STAR_520\wingnu\bin\sed.exe" Usage: c:/progra~1/star_520/wingnu/bin/sed.exe [OPTION]... {script-only-if-no-other-script} [input-file]...

-n, --quiet, --silent

suppress automatic printing of pattern space -e script, --expression=script

add the script to the commands to be executed -f script-file, --file=script-file

add the contents of script-file to the commands to be executed -l N, --line-length=N

specify the desired line-wrap length for the `l' command -u, --unbuffered

--help display this help and exit -V, --version output version information and exit

If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read.

E-mail bug reports to: bug-gnu-utils@gnu.org . Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.

If you see output other than this you have the wrong sed and you can fix this in one of three ways:

1) modify starlink so it runs $STARDIR/wingnu/bin/sed.exe

2) modify your path so $STARDIR/wingn/bin is found further up the list

3) copy sed.exe form $STARDIR/wingnu/bin to somewhere further up on your path such as C:\WINNT\system32

  Reply With Quote

Old   September 6, 2003, 00:18
Default Re: how can I generate new exe file in star-cd
  #11
David Baker
Guest
 
Posts: n/a
Dear philip,

I have only one sed.exe on my system. I saw other file in wingnu\bin folder too (nnsed.exe). I edited starlink and I replaced sed with nnsed. Now everything is OK. But I think it is better that I don't edit starlink. Also I have got other solution too, But it is not good solution. I added MAXDMN=1 after below line in starlink. So I know this line does not work properly.

MAXDMN=`grep -i MAXDMN parm.inc | sed -e 's/.*=\(.*\)).*/\1/' -e 's/ //g'`

Best Regards,
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Star-CCM+´s .ccm file in Star-CD Zolet CD-adapco 7 November 26, 2008 14:57
Generate chemkin appropriate file for a reaction ilati FLUENT 0 March 3, 2007 04:22
how to generate postscript file? leo CD-adapco 6 May 27, 2003 23:38
Is it the bug to save file in star-cd 3.10a raymond CD-adapco 3 September 21, 2001 02:09
How to generate a postscript file or a tif file? Ming-Jyh Chern CD-adapco 4 June 5, 2001 13:07


All times are GMT -4. The time now is 05:38.