Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sergey Kireev
nle
Commits
65bc195d
Commit
65bc195d
authored
Oct 27, 2021
by
Sergey Kireev
Browse files
windows scripts updated
parent
07c4b2b5
Changes
7
Hide whitespace changes
Inline
Side-by-side
nle_cpp/scripts_mingw64/build_nle.bat
View file @
65bc195d
...
...
@@ -2,9 +2,9 @@
@set
SRCDIR
=
../src
@set
TARGET
=
%SRCDIR%
/nle
.exe
@
%CXX_PATH%
\g
++
-std
=
c
++
17
-O
3
-march
=
native
-I
%SRCDIR%
-o
%TARGET%
%SRCDIR%
/main
.cpp
%SRCDIR%
/param
.cpp
@
"
%CXX_PATH%
\g++
"
-std
=
c
++
17
-O
3
-march
=
native
-I
%SRCDIR%
-o
%TARGET%
%SRCDIR%
/main
.cpp
%SRCDIR%
/param
.cpp
@if
exist
%TARGET%
(
echo
Build
done
!
)
else
(
echo
Build
failed
!
)
@
%GNUPLOT_PATH%
\gnuplot
.exe
-e
""
@
"
%GNUPLOT_PATH%
\gnuplot
"
-e
""
@if
%errorlevel%
equ
0
(
echo
gnuplot
check
OK
!
)
else
(
echo
gnuplot
check
failed
!
)
nle_cpp/scripts_mingw64/run_single/load_run.bat
View file @
65bc195d
...
...
@@ -35,11 +35,11 @@ copy parameters.bat %name% >NUL
move
%file_to_load%
%name%
\
>
NUL
rem Run simulation
%executable%
-nx
%nx%
-ny
%ny%
-nt
%nt%
-nts
%nts%
-ntp
%ntp%
-nsize
%nsize%
-
%cell%
^
-en
%en%
-el
%el%
-enl
%enl%
-kt
%kt%
-mu
%mu%
-evap
%evap%
-cond
%cond%
-g
%pgroup%
^
-ipn
%ipn%
-ipl
%ipl%
-ipe
%ipe%
-ofp
%prefix%
-ofs
%suffix%
^
-load
%name%
/
%file_to_load%
-it
%initial_step%
^
%nle_args%
"
%executable%
"
-nx
%nx%
-ny
%ny%
-nt
%nt%
-nts
%nts%
-ntp
%ntp%
-nsize
%nsize%
-
%cell%
^
-en
%en%
-el
%el%
-enl
%enl%
-kt
%kt%
-mu
%mu%
-evap
%evap%
-cond
%cond%
-g
%pgroup%
^
-ipn
%ipn%
-ipl
%ipl%
-ipe
%ipe%
-ofp
%prefix%
-ofs
%suffix%
^
-load
%name%
/
%file_to_load%
-it
%initial_step%
^
%nle_args%
if
%errorlevel%
neq
0
(
move
%name%
/
%file_to_load%
%file_to_load%
echo
Error
!
...
...
@@ -47,11 +47,11 @@ if %errorlevel% neq 0 (
)
echo
Making
gif
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_gif%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_gif%
move
%prefix%
.gif
%name%
/
%name%
.gif
>
NUL
echo
Making
png
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_png%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_png%
if
not
exist
%name%
\png
mkdir
%name%
\png
move
*
.png
%name%
/png
>
NUL
...
...
nle_cpp/scripts_mingw64/run_single/make_pics.bat
View file @
65bc195d
...
...
@@ -19,11 +19,11 @@ if not exist %name% (
cd
%name%
\dat
echo
Making
gif
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
..\..\
%script_gif%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
..\..\
%script_gif%
move
%prefix%
.gif ..\
%name%
.gif
>
NUL
echo
Making
png
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
..\..\
%script_png%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
..\..\
%script_png%
if
not
exist
..\png
mkdir
..\png
move
*
.png ..\png
>
NUL
...
...
nle_cpp/scripts_mingw64/run_single/make_pics_groups.bat
View file @
65bc195d
...
...
@@ -21,11 +21,11 @@ if not exist %name% (
cd
%name%
\dat
echo
Making
gif
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
"; defaultpalette=1"
..\..\
%script_gif%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
"; defaultpalette=1"
..\..\
%script_gif%
move
%prefix%
.gif ..\
%name%
.group.gif
>
NUL
echo
Making
png
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
"; defaultpalette=1"
..\..\
%script_png%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=
%initial_step%
; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
"; defaultpalette=1"
..\..\
%script_png%
if
not
exist
..\png.group
mkdir
..\png.group
move
*
.png ..\png.group
>
NUL
...
...
nle_cpp/scripts_mingw64/run_single/parameters.bat
View file @
65bc195d
...
...
@@ -62,7 +62,7 @@ rem Picture title
set
pic_title
=
e_n
=
%en%
e_
{
nl
}=
%enl%
e_l
=
%el%
Step
:
rem Directories
set
executable
=
"
../../src/nle
.exe"
set
executable
=
../../src/nle
set
gnuplot_scripts_dir
=
../../scripts/gnuplot
...
...
nle_cpp/scripts_mingw64/run_single/run.bat
View file @
65bc195d
...
...
@@ -21,21 +21,21 @@ mkdir %name%
copy
parameters
.bat
%name%
>
NUL
rem Run simulation
%executable%
-nx
%nx%
-ny
%ny%
-nt
%nt%
-nts
%nts%
-ntp
%ntp%
-nsize
%nsize%
-
%cell%
^
-en
%en%
-el
%el%
-enl
%enl%
-kt
%kt%
-mu
%mu%
-evap
%evap%
-cond
%cond%
-g
%pgroup%
^
-ipn
%ipn%
-ipl
%ipl%
-ipe
%ipe%
-ofp
%prefix%
-ofs
%suffix%
^
%nle_args%
"
%executable%
"
-nx
%nx%
-ny
%ny%
-nt
%nt%
-nts
%nts%
-ntp
%ntp%
-nsize
%nsize%
-
%cell%
^
-en
%en%
-el
%el%
-enl
%enl%
-kt
%kt%
-mu
%mu%
-evap
%evap%
-cond
%cond%
-g
%pgroup%
^
-ipn
%ipn%
-ipl
%ipl%
-ipe
%ipe%
-ofp
%prefix%
-ofs
%suffix%
^
%nle_args%
if
%errorlevel%
neq
0
(
echo
Error
!
exit
)
echo
Making
gif
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=0; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_gif%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=0; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_gif%
move
%prefix%
.gif
%name%
/
%name%
.gif
>
NUL
echo
Making
png
...
gnuplot
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=0; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_png%
"
%GNUPLOT_PATH%
\
gnuplot
"
-e
"nx=
%nx%
; ny=
%ny%
; nt=
%nt%
; nts=
%nts%
; nt0=0; prefix=\"
%prefix%
\
"; suffix=\"
%suffix%
\
"; title=\"
%pic_title%
\
"; sx=
%pic_size_x%
; sy=
%pic_size_y%
; colorn=\"
%colorN%
\
"; colorl=\"
%colorL%
\
"; colore=\"
%colorE%
\
""
%script_png%
if
not
exist
%name%
\png
mkdir
%name%
\png
move
*
.png
%name%
/png
>
NUL
...
...
nle_cpp/scripts_mingw64/set_path.bat
View file @
65bc195d
rem Please, set proper paths here.
@
rem Please, set proper paths here.
rem Path to g++.exe
@set
CXX_PATH
=
"
C:\mingw64\bin
"
@
rem Path to g++.exe
@set
CXX_PATH
=
C
:\mingw64\bin
rem Path to gnuplot.exe
@set
GNUPLOT_PATH
=
"
C:\Program Files\gnuplot\bin
"
@
rem Path to gnuplot.exe
@set
GNUPLOT_PATH
=
C
:\Program
Files
\gnuplot\bin
@PATH
=
%PATH%
;
%CXX_PATH%
;
%GNUPLOT_PATH%
@PATH
=
%PATH%
;
"
%CXX_PATH%
"
;
"
%GNUPLOT_PATH%
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment