[ADMB Users] directory where *.par, *.cor, *std etc are created in Linux or Mac, when executable is located other than current directory
John Sibert
sibert at hawaii.edu
Sun Feb 17 12:56:22 PST 2013
Hi Yukio,
You can also copy or move your executable in a directory on your PATH. I
have a bin directory in my home directory into which I copied the
executable from the "simple" example. I run by simply typing simple at
the prompt from the directory you want to use.
The following commands
> cd ~/admb/trunk/examples/admb/path-test
> pwd
> which simple
> simple
> ls -l
Produced the following output:
> home/jsibert/admb/trunk/examples/admb/path-test
> /home/jsibert/bin/simple
>
> Initial statistics: 2 variables; iteration 0; function evaluation 0;
> phase 1
> Function value 3.6493579e+01; maximum gradient component mag -3.6127e+00
> Var Value Gradient |Var Value Gradient |Var Value
> Gradient
> 1 0.00000 -3.61269e+00 | 2 0.00000 -7.27814e-01 |
>
> - final statistics:
> 2 variables; iteration 7; function evaluation 19
> Function value 1.4964e+01; maximum gradient component mag -7.0014e-05
> Exit code = 1; converg criter 1.0000e-04
> Var Value Gradient |Var Value Gradient |Var Value
> Gradient
> 1 1.90909 -7.00140e-05 | 2 4.07818 -2.08982e-05 |
> Estimating row 1 out of 2 for hessian
> Estimating row 2 out of 2 for hessian
> total 40
> -rw-rw-r-- 1 jsibert jsibert 56 Feb 17 10:52 admodel.cov
> -rw-rw-r-- 1 jsibert jsibert 5 Feb 17 10:52 admodel.dep
> -rw-rw-r-- 1 jsibert jsibert 56 Feb 17 10:52 admodel.hes
> -rw-rw-r-- 1 jsibert jsibert 0 Feb 17 10:52 eigv.rpt
> -rw-rw-r-- 1 jsibert jsibert 0 Feb 17 10:52 fmin.log
> -rw-rw-r-- 1 jsibert jsibert 16 Feb 17 10:52 simple.bar
> -rw-rw-r-- 1 jsibert jsibert 208 Feb 17 10:52 simple.cor
> -rw-rw-r-- 1 jsibert jsibert 172 Feb 17 10:38 simple.dat
> -rw-rw-r-- 1 jsibert jsibert 78 Feb 17 10:52 simple.eva
> -rw-rw-r-- 1 jsibert jsibert 119 Feb 17 10:52 simple.log
> -rw-rw-r-- 1 jsibert jsibert 143 Feb 17 10:52 simple.par
> -rw-rw-r-- 1 jsibert jsibert 103 Feb 17 10:52 simple.std
> -rw-rw-r-- 1 jsibert jsibert 0 Feb 17 10:52 variance
Cheers,
John
John Sibert
Emeritus Researcher, SOEST
University of Hawaii at Manoa
Honolulu HI (GMT-10)
808-294-3842
Visit the ADMB project http://admb-project.org/
On 02/16/2013 08:05 PM, yukio_takeuchi at icloud.com wrote:
> Hi,
>
> When I do multiple calculations with different dat file but with same
> executable compiled with ADNB, I usually set up directories with
> different dat file and put an executable on one more upper level in ms-
> windows. e.g.
>
> c:\simrun\sim.exe
> c:\simrun\sim1\sim.dat
> c:\simrun\sim2\sim.dat
> ...
>
> The I ususally use batch file like
>
> cd c:\simrun
> cd sim1
> ..\sim.exe
>
> cd ..\sim2
> ..\sim.exe
>
> cd ..\sim3
> ...
>
> This allows me to avoid overwriting of output files (*.par,*.cor etc).
>
> When I tried similar approach in Linux as well as mac, using relative
> path or absolute path of executable different from the current
> directory, I found that output files (*.par, *.cor, *.std etc) produced
> from executable were put on the same directory of the executable.
>
> Is this intended behavior under Linux or mac?
>
> Yukio Takeuchi
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>
More information about the Users
mailing list