Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mpi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Никита Бесшапошников
mpi
Commits
ad141ddd
Commit
ad141ddd
authored
Mar 18, 2018
by
Никита Бесшапошников
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected doc and run script
parent
549da061
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+1
-1
run.py
run.py
+3
-3
No files found.
README.md
View file @
ad141ddd
...
...
@@ -12,7 +12,7 @@
*
Варинаты аргументов для разных задач:
*
**-n размер_матрицы**
- для матриц
*
**-N число_частей_по_оси_X -t_therm временной_отрезок**
- для уравннения теплопроводности
*
**-t_osc временной_отрезок -dt шаг_по_времени -d
ч
шаг_по_X**
- для уравннения колебания струны
*
**-t_osc временной_отрезок -dt шаг_по_времени -d
x
шаг_по_X**
- для уравннения колебания струны
### Справка скрипта ###
...
...
run.py
View file @
ad141ddd
...
...
@@ -20,7 +20,7 @@ def _parse_arguments(argv):
parser
.
add_argument
(
"-np"
,
dest
=
"threads"
,
type
=
int
,
help
=
'Specify the number of threads'
,
required
=
True
)
parser
.
add_argument
(
"-o"
,
"--option"
,
dest
=
"
variant
"
,
type
=
int
,
parser
.
add_argument
(
"-o"
,
"--option"
,
dest
=
"
option
"
,
type
=
int
,
help
=
'Specify the variant'
,
required
=
True
)
group
=
parser
.
add_argument_group
(
'Matrix options'
)
...
...
@@ -28,7 +28,7 @@ def _parse_arguments(argv):
group
=
parser
.
add_argument_group
(
'Thermal equation options'
)
group
.
add_argument
(
"-N"
,
dest
=
"N"
,
type
=
int
,
help
=
'Specify the N(x part num)'
)
group
.
add_argument
(
"-t_them"
,
dest
=
"T"
,
type
=
float
,
help
=
'Specify the T (time length)'
)
group
.
add_argument
(
"-t_the
r
m"
,
dest
=
"T"
,
type
=
float
,
help
=
'Specify the T (time length)'
)
group
=
parser
.
add_argument_group
(
'Oscillation equation options'
)
...
...
@@ -64,7 +64,7 @@ if __name__ == "__main__":
run_args
=
'%d'
%
(
args
.
matrix_size
)
elif
args
.
task
==
'thermal'
:
run_args
=
'%d %d %lf'
%
(
args
.
option
,
args
.
N
,
args
.
T
)
elif
args
.
task
==
'
thermal
'
:
elif
args
.
task
==
'
oscillation
'
:
run_args
=
'%d %lf %lf %lf'
%
(
args
.
option
,
args
.
T
,
args
.
dx
,
args
.
dt
)
if
not
args
.
wait
:
...
...
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