aboutsummaryrefslogtreecommitdiff
path: root/CarpetExtra
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-04-17 22:28:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-04-17 22:28:00 +0000
commit9df0e7a6b64885f7bb423aad76a496c2c1e7cc49 (patch)
tree2ad093b8130c95e1b80c3c1289b14aa4b61e30f1 /CarpetExtra
parent3d0e8524c3900f53da9076993f0f1c34ad28270a (diff)
RegridSyncTest: New thorn
Add a debugging thorn to test synchronisation with progressive mesh refinement. darcs-hash:20060417222827-dae7b-f1356400e653649280494169c762eaa0528c43cc.gz
Diffstat (limited to 'CarpetExtra')
-rw-r--r--CarpetExtra/RegridSyncTest/README9
-rw-r--r--CarpetExtra/RegridSyncTest/doc/documentation.tex144
-rw-r--r--CarpetExtra/RegridSyncTest/interface.ccl8
-rw-r--r--CarpetExtra/RegridSyncTest/param.ccl2
-rw-r--r--CarpetExtra/RegridSyncTest/schedule.ccl18
-rw-r--r--CarpetExtra/RegridSyncTest/src/make.code.defn8
-rw-r--r--CarpetExtra/RegridSyncTest/src/regridsynctest.F9030
-rw-r--r--CarpetExtra/RegridSyncTest/test/regridsynctest.par201
8 files changed, 420 insertions, 0 deletions
diff --git a/CarpetExtra/RegridSyncTest/README b/CarpetExtra/RegridSyncTest/README
new file mode 100644
index 000000000..ae046efe1
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/README
@@ -0,0 +1,9 @@
+CVS info : $Header:$
+
+Cactus Code Thorn RegridSyncTest
+Thorn Author(s) : Christian D. Ott <cott@aei.mpg.de>
+Thorn Maintainer(s) : Christian D. Ott <cott@aei.mpg.de>
+--------------------------------------------------------------------------
+
+Purpose of the thorn:
+
diff --git a/CarpetExtra/RegridSyncTest/doc/documentation.tex b/CarpetExtra/RegridSyncTest/doc/documentation.tex
new file mode 100644
index 000000000..206e8deba
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/doc/documentation.tex
@@ -0,0 +1,144 @@
+% *======================================================================*
+% Cactus Thorn template for ThornGuide documentation
+% Author: Ian Kelley
+% Date: Sun Jun 02, 2002
+% $Header: /cactusdevcvs/Cactus/doc/ThornGuide/template.tex,v 1.12 2004/01/07 20:12:39 rideout Exp $
+%
+% Thorn documentation in the latex file doc/documentation.tex
+% will be included in ThornGuides built with the Cactus make system.
+% The scripts employed by the make system automatically include
+% pages about variables, parameters and scheduling parsed from the
+% relevant thorn CCL files.
+%
+% This template contains guidelines which help to assure that your
+% documentation will be correctly added to ThornGuides. More
+% information is available in the Cactus UsersGuide.
+%
+% Guidelines:
+% - Do not change anything before the line
+% % START CACTUS THORNGUIDE",
+% except for filling in the title, author, date, etc. fields.
+% - Each of these fields should only be on ONE line.
+% - Author names should be separated with a \\ or a comma.
+% - You can define your own macros, but they must appear after
+% the START CACTUS THORNGUIDE line, and must not redefine standard
+% latex commands.
+% - To avoid name clashes with other thorns, 'labels', 'citations',
+% 'references', and 'image' names should conform to the following
+% convention:
+% ARRANGEMENT_THORN_LABEL
+% For example, an image wave.eps in the arrangement CactusWave and
+% thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps
+% - Graphics should only be included using the graphicx package.
+% More specifically, with the "\includegraphics" command. Do
+% not specify any graphic file extensions in your .tex file. This
+% will allow us to create a PDF version of the ThornGuide
+% via pdflatex.
+% - References should be included with the latex "\bibitem" command.
+% - Use \begin{abstract}...\end{abstract} instead of \abstract{...}
+% - Do not use \appendix, instead include any appendices you need as
+% standard sections.
+% - For the benefit of our Perl scripts, and for future extensions,
+% please use simple latex.
+%
+% *======================================================================*
+%
+% Example of including a graphic image:
+% \begin{figure}[ht]
+% \begin{center}
+% \includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure}
+% \end{center}
+% \caption{Illustration of this and that}
+% \label{MyArrangement_MyThorn_MyLabel}
+% \end{figure}
+%
+% Example of using a label:
+% \label{MyArrangement_MyThorn_MyLabel}
+%
+% Example of a citation:
+% \cite{MyArrangement_MyThorn_Author99}
+%
+% Example of including a reference
+% \bibitem{MyArrangement_MyThorn_Author99}
+% {J. Author, {\em The Title of the Book, Journal, or periodical}, 1 (1999),
+% 1--16. {\tt http://www.nowhere.com/}}
+%
+% *======================================================================*
+
+% If you are using CVS use this line to give version information
+% $Header: /cactusdevcvs/Cactus/doc/ThornGuide/template.tex,v 1.12 2004/01/07 20:12:39 rideout Exp $
+
+\documentclass{article}
+
+% Use the Cactus ThornGuide style file
+% (Automatically used from Cactus distribution, if you have a
+% thorn without the Cactus Flesh download this from the Cactus
+% homepage at www.cactuscode.org)
+\usepackage{../../../../doc/latex/cactus}
+
+\begin{document}
+
+% The author of the documentation
+\author{Christian D. Ott \textless cott@aei.mpg.de\textgreater}
+
+% The title of the document (not necessarily the name of the Thorn)
+\title{RegridSyncTest}
+
+% the date your document was last changed, if your document is in CVS,
+% please use:
+% \date{$ $Date: 2004/01/07 20:12:39 $ $}
+\date{April 14 2006}
+
+\maketitle
+
+% Do not delete next line
+% START CACTUS THORNGUIDE
+
+% Add all definitions used in this documentation here
+% \def\mydef etc
+
+% Add an abstract for this thorn's documentation
+\begin{abstract}
+
+\end{abstract}
+
+% The following sections are suggestive only.
+% Remove them or add your own.
+
+\section{Introduction}
+
+\section{Physical System}
+
+\section{Numerical Implementation}
+
+\section{Using This Thorn}
+
+\subsection{Obtaining This Thorn}
+
+\subsection{Basic Usage}
+
+\subsection{Special Behaviour}
+
+\subsection{Interaction With Other Thorns}
+
+\subsection{Examples}
+
+\subsection{Support and Feedback}
+
+\section{History}
+
+\subsection{Thorn Source Code}
+
+\subsection{Thorn Documentation}
+
+\subsection{Acknowledgements}
+
+
+\begin{thebibliography}{9}
+
+\end{thebibliography}
+
+% Do not delete next line
+% END CACTUS THORNGUIDE
+
+\end{document}
diff --git a/CarpetExtra/RegridSyncTest/interface.ccl b/CarpetExtra/RegridSyncTest/interface.ccl
new file mode 100644
index 000000000..6e1be6dc6
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/interface.ccl
@@ -0,0 +1,8 @@
+# Interface definition for thorn RegridSyncTest
+# $Header:$
+
+implements: RegridSyncTest
+inherits:
+
+
+real myregridtestgf type=GF timelevels=3 "This is the regrid test grid function"
diff --git a/CarpetExtra/RegridSyncTest/param.ccl b/CarpetExtra/RegridSyncTest/param.ccl
new file mode 100644
index 000000000..a1a5cd065
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/param.ccl
@@ -0,0 +1,2 @@
+# Parameter definitions for thorn RegridSyncTest
+# $Header:$
diff --git a/CarpetExtra/RegridSyncTest/schedule.ccl b/CarpetExtra/RegridSyncTest/schedule.ccl
new file mode 100644
index 000000000..7a4bc28fe
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/schedule.ccl
@@ -0,0 +1,18 @@
+# Schedule definitions for thorn RegridSyncTest
+# $Header:$
+
+storage: myregridtestgf[3]
+
+schedule RegridSyncTest_setup AT CCTK_INITIAL
+{
+ LANG: Fortran
+ SYNC: myregridtestgf
+} "Do something at inital"
+
+
+schedule RegridSyncTest_do_something AT PostRegrid
+{
+ LANG: Fortran
+ SYNC: myregridtestgf
+} "Do something at postregrid and try to sync"
+
diff --git a/CarpetExtra/RegridSyncTest/src/make.code.defn b/CarpetExtra/RegridSyncTest/src/make.code.defn
new file mode 100644
index 000000000..077fb16f1
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/src/make.code.defn
@@ -0,0 +1,8 @@
+# Main make.code.defn file for thorn RegridSyncTest
+# $Header:$
+
+# Source files in this directory
+SRCS = regridsynctest.F90
+
+# Subdirectories containing source files
+SUBDIRS =
diff --git a/CarpetExtra/RegridSyncTest/src/regridsynctest.F90 b/CarpetExtra/RegridSyncTest/src/regridsynctest.F90
new file mode 100644
index 000000000..a4c1e5dab
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/src/regridsynctest.F90
@@ -0,0 +1,30 @@
+#include "cctk.h"
+#include "cctk_Parameters.h"
+#include "cctk_Arguments.h"
+#include "cctk_Functions.h"
+
+
+
+subroutine RegridSyncTest_setup(CCTK_ARGUMENTS)
+
+ implicit none
+ DECLARE_CCTK_PARAMETERS
+ DECLARE_CCTK_ARGUMENTS
+
+ myregridtestgf = 0.9d0
+
+
+end subroutine RegridSyncTest_setup
+
+
+subroutine RegridSyncTest_do_something(CCTK_ARGUMENTS)
+
+ implicit none
+ DECLARE_CCTK_PARAMETERS
+ DECLARE_CCTK_ARGUMENTS
+
+ myregridtestgf = 1.0d0
+
+
+end subroutine RegridSyncTest_do_something
+
diff --git a/CarpetExtra/RegridSyncTest/test/regridsynctest.par b/CarpetExtra/RegridSyncTest/test/regridsynctest.par
new file mode 100644
index 000000000..8328db2f5
--- /dev/null
+++ b/CarpetExtra/RegridSyncTest/test/regridsynctest.par
@@ -0,0 +1,201 @@
+
+#--- Base and Driver Thorns
+
+ActiveThorns = " time
+ carpet
+ carpetlib
+ carpetregrid
+ carpetreduce
+ carpetslab
+ cartgrid3d
+ coordbase
+ mol
+ boundary
+ spacemask
+ carpetiobasic
+ ioutil
+ symbase
+ aeilocalinterp
+ carpetinterp
+ "
+
+#--- Spacetime :-)
+
+ActiveThorns = " admbase
+ staticconformal
+ admconstraints
+ admcoupling
+ coordgauge
+ admmacros
+ bssn_mol
+ "
+
+#--- Hydrodynamics
+
+ActiveThorns = " whisky
+ whisky_init_data
+ whisky_rnsid
+ eos_base
+ eos_polytrope
+ regridsynctest
+ "
+
+
+################## Output Related Stuff ##################################
+
+IOBasic::outInfo_vars = "whisky::rho admbase::alp"
+iobasic::outInfo_every = 1
+
+
+#--- general
+
+
+#--- output directories
+IO::out_dir = $parfile
+
+#--- checkpoint recovery
+io::recover = "no"
+
+
+#--- output frequency
+
+io::out_single_precision = "yes"
+
+
+
+############################# DRIVER #####################################
+
+#--- Benchmarking
+
+carpet::constant_load_per_processor = "yes"
+
+#--- performance & infrastructure
+
+carpetlib::use_collective_communication_buffers = "yes"
+carpet::enable_all_storage = "no"
+CarpetLib::save_memory_during_regridding = "yes"
+
+#--- Carpet prolongation order settings
+
+Carpet::prolongation_order_space = 3
+Carpet::prolongation_order_time = 2
+
+
+#--- Carpet initial data setup parameters
+
+Carpet::init_3_timelevels = "yes"
+Carpet::init_each_timelevel = "no"
+
+
+#--- Grid Setup and carpet parameters
+
+
+carpet::buffer_width = 6
+
+driver::ghost_size = 3
+
+cartgrid3d::type = "box"
+cartgrid3d::domain = "full"
+cartgrid3d::avoid_origin = "no"
+
+cartgrid3d::dxyz = 1.0
+driver::global_nx = 30
+driver::global_ny = 30
+driver::global_nz = 30
+
+cactus::cctk_itlast = 128
+
+Carpet::domain_from_coordbase = "no"
+
+carpet::max_refinement_levels = 3
+carpetregrid::refinement_levels = 1
+
+carpetregrid::regrid_every = 16
+carpetregrid::num_new_levels = 1
+carpetregrid::activate_levels_on_regrid = "fixed"
+
+carpet::veryverbose = "no"
+carpet::verbose = "yes"
+
+
+################## Spacetime Related Stuff #############################
+
+
+admbase::evolution_method = "adm_bssn"
+admbase::lapse_evolution_method = "1+log"
+admbase::shift_evolution_method = "static"
+
+boundary::radpower = 2
+
+admconstraints::bound = "static"
+
+bssn_mol::timelevels = 3
+
+
+######################## Hydro Related Stuff ###########################
+
+
+whisky::timelevels = 3
+
+whisky::whisky_rho_central = 1.61930347e-08
+whisky::riemann_solver = "Marquina"
+whisky::whisky_eos_type = "Polytype"
+whisky::whisky_eos_table = "2D_Polytrope"
+whisky::recon_method = "ppm"
+whisky::ppm_detect = "yes"
+whisky::whisky_stencil = 3
+whisky::bound = "none"
+
+whisky::EoS_Change = "no"
+EOS_Polytrope::eos_gamma = 2.0
+EOS_Polytrope::eos_k = 1.0
+EOS_Polytrope::use_cgs = "yes"
+EOS_Polytrope::gamma_ini = 2.0
+
+#------ Atmosphere treatment
+
+SpaceMask::use_mask = yes
+
+whisky::rho_rel_min = 1.e-5
+
+#------ Atmosphere only for
+whisky::initial_atmosphere_factor = 0.99
+
+
+
+####################### Initial Data #####################################
+
+
+admbase::initial_data = "rnsid"
+admbase::initial_lapse = "rnsid"
+admbase::initial_shift = "rnsid"
+admbase::metric_type = "physical"
+
+rnsid::axes_ratio = 1.0
+rnsid::accuracy = 1e-7
+
+rnsid::RNS_Gamma = 2.0
+rnsid::RNS_K = 100.0
+
+rnsid::recover_2Dmodel = "no"
+rnsid::save_2Dmodel = "no"
+
+rnsid::mdiv = 151
+rnsid::sdiv = 301
+
+
+
+
+##################### Infrastructure Related Stuff ########################
+
+#--- Time integration
+
+mol::ode_method = "icn"
+MoL::Generic_Type = "RK"
+MoL::MoL_Intermediate_Steps = 3
+time::dtfac = 0.375
+
+
+
+#---- Timer output
+cactus::cctk_timer_output = "FULL"