forked from AMReX-Codes/amrex-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c80f008
commit 0da557b
Showing
779 changed files
with
3,505 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# http://EditorConfig.org | ||
# | ||
# precedence of rules is bottom to top | ||
|
||
# this is the top-most EditorConfig file | ||
root = true | ||
|
||
|
||
[*.{c,h,cpp,hpp,H,py}] | ||
# 4 space indentation | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# setting it to true would result in too many white changes to amrex | ||
trim_trailing_whitespace = true | ||
|
||
# unix-style newlines | ||
end_of_line = lf | ||
|
||
# newline ending in files | ||
insert_final_newline = true | ||
|
||
|
||
[*.md] | ||
# two end of line whitespaces are newlines without a paragraph | ||
trim_trailing_whitespace = false | ||
|
||
|
||
[*.rst] | ||
# Enforce UTF-8 encoding | ||
charset = utf-8 | ||
|
||
# Unix-style newlines | ||
end_of_line = lf | ||
|
||
# Newline ending in files | ||
insert_final_newline = true | ||
|
||
# 3 space indentation | ||
indent_style = space | ||
indent_size = 3 | ||
|
||
# Clean up trailing whitespace | ||
trim_trailing_whitespace = true | ||
|
||
[Makefile] | ||
# TABs are part of its syntax | ||
indent_style = tab | ||
indent_size = unset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu -o pipefail | ||
|
||
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2 | ||
sudo update-alternatives --set python /usr/bin/python3 | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade wheel | ||
python -m pip install --upgrade cmake matplotlib==3.2.2 numpy yt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM gitpod/workspace-full-vnc | ||
|
||
RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends build-essential g++ libopenmpi-dev openmpi-bin paraview python3-paraview ffmpeg python3 python3-pip python3-setuptools && sudo rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# The Docker image to run your workspace in. Defaults to gitpod/workspace-full | ||
image: | ||
file: .gitpod.dockerfile | ||
tasks: | ||
- init: /workspace/amrex-tutorials/.gitpod.dependencies.sh | ||
command: cp -r /workspace/amrex-tutorials/.jupyter /home/gitpod/ | ||
# Ports to expose on workspace startup (optional) | ||
ports: | ||
- port: 8000 | ||
onOpen: open-preview | ||
- port: 8888 | ||
onOpen: open-browser | ||
github: | ||
prebuilds: | ||
# enable for the master/default branch (defaults to true) | ||
master: true | ||
# enable for all branches in this repo (defaults to false) | ||
branches: false | ||
# enable for pull requests coming from this repo (defaults to true) | ||
pullRequests: false | ||
# enable for pull requests coming from forks (defaults to false) | ||
pullRequestsFromForks: false | ||
# add a check to pull requests (defaults to true) | ||
addCheck: false | ||
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false) | ||
addComment: false | ||
# add a "Review in Gitpod" button to the pull request's description (defaults to false) | ||
addBadge: false | ||
# add a label once the prebuild is ready to pull requests (defaults to false) | ||
addLabel: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
c.NotebookApp.ip = '0.0.0.0' | ||
c.NotebookApp.allow_origin = '*' | ||
c.NotebookApp.open_browser = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
|
||
Guided Tutorials | ||
================ | ||
|
||
The source code for these tutorials can be found in the ``AMReX-Codes/amrex-tutorials`` | ||
repo, under the parent directory ``amrex-tutorials/GuidedTutorials``. | ||
|
||
|
||
:ref:`Hello World<guided_hello_world>` | ||
-------------------------------------- | ||
|
||
This tutorial explains how to build AMReX HelloWorld. | ||
|
||
|
||
.. _`Hello World`: HelloWorld.html | ||
|
||
|
||
--------- | ||
|
||
:ref:`Heat Equation -- Simple<guided_heat_simple>` | ||
-------------------------------------------------- | ||
|
||
A complete build-run-visualize workflow walk-through. This simplified introduction | ||
covers several basic components of AMReX while minimizing required knowledge of C++ | ||
syntax. | ||
|
||
.. _`Heat Equation -- Simple`: HeatEquation_Simple.html | ||
|
||
| | ||
:ref:`Heat Equation<guided_heat>` | ||
--------------------------------- | ||
|
||
This tutorial revisits AMReX's approach to heat equation in additional detail with | ||
preprocessor variables, scoped namespaces, and multiple source files | ||
to demonstrate additional convenience and functionality. | ||
|
||
.. _`Heat Equation`: HeatEquation_EX1_C.html | ||
|
||
|
||
------------- | ||
|
||
|
||
`Tutorials from the 2021 ECP Annual Meeting`_ | ||
--------------------------------------------- | ||
|
||
It's also possible to work through several tutorials on AMReX that were presented | ||
at the 2021 ECP Annual Meeting without needing to install any dependencies or | ||
download any code to your local machine. The tutorials are available in the GitHub repo, | ||
`ECP-Tutorials <https://github.com/atmyers/ecp-tutorials>`_ and use the GitPod | ||
cloud dev environment. For accompanying slides, see | ||
`tutorial_slides.pdf <https://amrex-codes.github.io/amrex/tutorial_slides.pdf>`_. | ||
|
||
.. _`Tutorials from the 2021 ECP Annual Meeting`: https://github.com/atmyers/ecp-tutorials |
Oops, something went wrong.