Coder Social home page Coder Social logo

Comments (2)

tomidakn avatar tomidakn commented on August 20, 2024

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.

wenhuaju avatar wenhuaju commented on August 20, 2024

Hi Kengo,

Thanks! Sorry I missed your update a few weeks ago. Now everything works.

Best,
Wendy

from athena.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.