Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global dump / Shared dump #3

Open
andresmanelli opened this issue Oct 18, 2014 · 0 comments
Open

Global dump / Shared dump #3

andresmanelli opened this issue Oct 18, 2014 · 0 comments

Comments

@andresmanelli
Copy link
Owner

If there's a dump format that is the same for two or more fixes, and is only defined in the first one, this will cause problems, because for the moment the script looks for a fix and some commands associated with it until the next fix (or empty #OP, or end of the simulation).

The problem resides in the way the restart file is created. The search for the last operation will erase the previous.

Example:

#OP
fix heat [...]
dump D1 [...]
restart [...]
run 1000
unfix heat

#OP
fix cool [...]
restart [...]
run 2000
unfix cool

Here, If the simulation stops at 1500 steps (only part of the second fix performed), the first fix will be ereased and with it the dump info. This can be solved for the moment undump-ing each time and repeating the format in each fix, i.e:

#OP
fix heat [...]
dump D1 [...]
restart [...]
run 1000
unfix heat
undump D1

#OP
fix cool [...]
dump D1 [...]
restart [...]
run 2000
unfix cool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant