Comments (2)
Hi Wendy,
Please make sure you have the latest version. EnrollUserSourceTermFunction is a
member of Mesh, not MeshBlock. So I believe this should work as intended, and
you should be able to use the InitUserMeshProperties function for restarting
initialization.
Cheers,
Kengo
On 2016/02/10 13:11, Wenhua Ju wrote:
With the new boundary condition interface, I see that the new
�$B!H�(BMesh::InitUserMeshProperties�$B!I�(B function is added to problem generators which is
called when we start a new run or restart. This is nice, since user boundary
conditions in this function can be enrolled when we restart.However, in this case, user physical source term still cannot be enrolled when
we restart. The �$B!H�(BEnrollSrcTermFunction�$B!I�(B is under MeshBlock. It�$B!G�(Bs not a property
for the whole mesh. If we call this function in �$B!H�(BMesh::InitUserMeshProperties�$B!I�(B,
we have to iterate over every meshblock. But if we call this function in
�$B!H�(BProblemGenerator�$B!I�(B, it is not called when we restart a run.Before the new BC interface was written, my old way to solve this problem was
adding an extra function of "RestartInitialization" to the problem generator
where I enroll user src term function (like athena 4.2). I let the main function
call this "RestartInitialization" function if res_flag==1. This way of hacking
is not good for future users.�$B!=�(B
Reply to this email directly or view it on GitHub
#18.
Kengo TOMIDA [email protected]
Department of Astrophysical Sciences, Princeton University
from athena.
Hi Kengo,
Thanks! Sorry I missed your update a few weeks ago. Now everything works.
Best,
Wendy
from athena.
Related Issues (20)
- Is this pdata->pnext supposed to be pnew->pnext here?
- Merge GR radiation transport
- Remove unused DEBUG macro HOT 4
- Use a uniform convention for boundary condition input parameters HOT 4
- Errors of linear Alfven wave for RK3+PPM (xorder=3) are much smaller than those in Athena++ paper
- Leftovers from merge non-relativistic radiation transport: add more output switches, derive IMRadTaskList, etc. HOT 7
- Timestep is incorrect for some GR metrics HOT 4
- Leftover chemistry fixes HOT 2
- Inconsistency in documentation of user-defined source terms? HOT 5
- Remove extraneous DeleteAthenaArray() calls HOT 3
- Access ParameterInput instance from user boundary conditions HOT 2
- Array indexing errors in llf_mhd_rel_no_transform.cpp HOT 2
- Leftover cosmic ray transport and diffusion changes HOT 1
- MHD shearing box has artifacts with SMR HOT 3
- athena_read allocates unnecessarily large amount of memory HOT 1
- Segmentation fault with shearing box and multiple meshblocks HOT 1
- Trouble running the configure script on MacOS terminal HOT 8
- radiation boundaries not applied in implicit radiation HOT 2
- About the way of inheritance
- Confusion while running 'athinput.magnetized_inflow' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from athena.