---
You received this message because you are subscribed to the Google Groups "cloudy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudy-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/BN7PR07MB52848E6E38D876681CD7E2FEE0AF0%40BN7PR07MB5284.namprd07.prod.outlook.com.
Hi Marios,
I thought that the way to act was to require a feedback in git? Has this changed?
Also, it is normal that cosmic rays heating allows the gas to cool under 0.5K? I did not know that this was possible.
---
You received this message because you are subscribed to the Google Groups "cloudy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudy-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/BN7PR07MB52848E6E38D876681CD7E2FEE0AF0%40BN7PR07MB5284.namprd07.prod.outlook.com.
To clarify, when I said that the presence or not of cosmic rays did not affect the behavior of the run, I was referring to the original sim, not the one forced to equilibrium.
For the latter, with the patch applied, the sim:
- without CR fails (ill-conditioned matrix at 350K, b/c all reactions involving H have virtually 0 rates);
- with CR succeeds (runs for 600 sims).
I hope this clears things up a bit.
Thanks,
Marios
---
You received this message because you are subscribed to the Google Groups "cloudy-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloudy-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/BN7PR07MB52848E6E38D876681CD7E2FEE0AF0%40BN7PR07MB5284.namprd07.prod.outlook.com.
Hi Gary,
I may not have been clear about this, but let me reiterate: The
original sim failed at about 9,500K, but after applying the patch,
and allowing for cosmic rays, it runs to completion (600
iterations) with the final temperature being the aforementioned.
(Actually, of the 378/600 iterations were at that temperature --
but that's a different issue.)
All in all, I think the patch is OK, but I'd like to talk about it before I commit it (to newdyna). So, yes, we can talk tomorrow after the journal club.
Thanks,
Marios
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/CAOxTjFR_VwZP7ZJxY9bM6xpsW8zoJ-ZN0ZCZopux8rbc_Mm6pA%40mail.gmail.com.
Hi Robin,
Thanks for providing some context to this.
The patch simply refactors the conditions for employing the time-dependent / advective terms with the level solvers, because they were not being used consistently throughout the code. I refer specifically to the if statements in mole_solve.cpp did not check on the flag for equilibrium, which omitted that flag.
Apparently, with the current coding (sans the patch), the
molecular network does not employ the conservation constraints in
the matrix. I think moving forward I should check how this
affects things. My feeling is that this part of the code has not
been tested enough.
Thanks,
Marios
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/CAJBtPxe55Scu9CcnP%3DMGb3_DoDrNM%2B2%3D0NMWCS%3DcTtK%3DE94CDA%40mail.gmail.com.
Hello,
I have run the test suite with the patch, and got only two sims that botched:
auto/time_cool_cd_noaccu.out: ChkMonitor
botch>>Fe24 11.1710A -29.1600 =
-29.1814 -0.051 0.050 intr
slow/time_cool_cp.out: ChkMonitor botch>>O
7 18.6270A 11.8113 = 11.8400 0.064
0.050 intr cumu
slow/time_cool_cp.out: ChkMonitor botch>>He
2 1640.43A 11.8393 = 11.8700 0.068
0.050 intr cumu
The same botches occur even without the patch, and I've determined
that they are due to changes in the time-stepping (I reverted to
following changes in the H+ abundance, instead of using a fraction
of the cooling time). Note that the first botch checks the
instantaneous line intensity at the last computed temperature,
which changed due to the aforementioned revert -- note that the
sim is there to exercise the 'set cumulative off' command, i.e.,
it does not exercise any part of the time-dependent algorithm.
The botches vanish when the previous time-stepping criterion
(fraction of cooling time) is employed.
If you have any comments, please let me know.
Marios
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/d8bcd7b1-9b5e-8b0f-e858-a6b3ead05746%40gmail.com.
Hi Robin,
Thanks for the response. Your points make sense. I have incorporated them in the attached updated patch.
As you may notice, I've dropped "+1" in the check on the
iteration number. I'm running the test suite to confirm this has
no side effects.
Marios
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/CAJBtPxfsDRXyKCLWdxnZgAQ9_WMbntdyd1FbphFh%2Br16N5b7rw%40mail.gmail.com.
Hi Robin,
The test suite passed clean (apart from the botches mentioned
earlier, which are related to the time-stepping strategy). I also
checked the experimental sims, and got the same behavior as with
the mainline. To be clear: some of them failed, but the failures
are not related to the patch.
atom_leveln.cpp:381: iteration >
dynamics.n_initial_relax )
conv_init_solution.cpp:623: if( iteration
<= dynamics.n_initial_relax )
conv_itercheck.cpp:326: if( iteration
<= dynamics.n_initial_relax+1 ||
dynamics.cpp:994: if( iteration ==
dynamics.n_initial_relax+1)
dynamics.cpp:1054: else if(iteration >
dynamics.n_initial_relax+1 )
These may represent different use cases, and warrant a closer look. However, this goes beyond the scope of the patch, and should be done separately.
Let me know if you have any more concerns. If not, I'll commit
the patch.
Thanks,
Marios
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/dfa9a1fd-686a-2cde-c886-44b05165a754%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/dfa9a1fd-686a-2cde-c886-44b05165a754%40gmail.com.
I suppose so, but I'd apply it to newdyna instead. There are a few other things I'm looking at. After these are addressed we can talk about merging newdyna back onto master.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/CAOxTjFSwwnmVAJ-DbeAWezhqso9T2JzFcaaJ%2BvY%3DrrKKR0A7wA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/02b3e8ef-15fa-686b-ae35-c24831b3f9f7%40gmail.com.
Hi Gary,
First of all, newdyna is not a long-lived branch: it was created on July 27, 2020, as per the commit message at the time. It did not have that many commits before we moved off to git. Here's the full svn history:
$ svn log --stop-on-copy
------------------------------------------------------------------------
r14320 | marios | 2020-10-13 10:08:56 -0400 (Tue, 13 Oct
2020) | 2 lines
Merged from mainline r14170 through 14319.
------------------------------------------------------------------------
r14170 | marios | 2020-07-27 14:23:04 -0400 (Mon, 27 Jul
2020) | 20 lines
Added command 'save dt'.
source/save.h
- Defined new parameters to control command output.
source/init_defaults_preparse.cpp
- Initialized some of the new parameters.
source/parse_save.cpp
- Added parsing of command 'save dt'.
source/dynamics.cpp
- Defined function that saves the contents of the file.
tsuite/auto/time_cool_cd.in
- Exercised new command.
docs/latex/hazy1/conout.tex
- Documented new command.
------------------------------------------------------------------------
r14169 | marios | 2020-07-27 12:13:09 -0400 (Mon, 27 Jul
2020) | 4 lines
source/dynamics.cpp
- Restored timestep_next() to original coding involving
only changes to the
H density. Permits cooling below 6,500 K.
------------------------------------------------------------------------
r14168 | marios | 2020-07-27 10:45:42 -0400 (Mon, 27 Jul
2020) | 1 line
New branch
------------------------------------------------------------------------
And here is the git history:
$ git log
commit d02a0c85ffae9075a6596d9a3e787d143df62e02
Author: Marios Chatzikos <mchat...@gmail.com>
Date: Mon Dec 7 17:47:55 2020 -0500
Add columns for advective terms to save cool/heat
The output of the save cooling/heating commands
treats advective heating
and cooling terms ambiguously. It excludes them from
the total when
reporting fractional contributions, but reports them
as contributing
agents. As a result, advective terms with fractions
>>100% are commonly
encountered in cooling simulations.
Add columns to report these contributions, but
exclude them from the
list of cooling/heating agents.
https://groups.google.com/g/cloudy-dev/c/69NLm1Ru_cs
commit 4441ba548530007b0ec9f986d42cab2b6c33b8ab
Author: Marios Chatzikos <mchat...@gmail.com>
Date: Mon Dec 7 16:33:57 2020 -0500
Prevent FPEs in cooling sims with external radiation
fields
Including external radiation fields (e.g., the CMB)
in cooling sims
may lead to FPEs. The cumulative radiation field
intensity involves
multiplication by a factor that may be near the
maximum value a float
can hold. This is not a problem with diffuse
radiation. However, when
the CMB is included, the product exceeds that limit
and an FPE occurs.
The adopted bugfix hides in a new class the details
of how the
integrated flux is accumulated, while preserving how
the flux vectors
are accessed. The latter is mainly useful for the
instantaneous flux.
As an added feature, the time-weighted mean flux is
also computed.
Reported-by: M. Chatzikos
https://groups.google.com/g/cloudy-dev/c/GSWoDN_hxqc
commit 8027c7db9ad4e076231113675894c70b1918dcf7
Author: Milby, Jonathan S <j...@uky.edu>
Date: Wed Dec 2 12:40:18 2020 -0500
Initial commit for newdyna
All in all 4 commits. The branch has not diverged that much from
the mainline.
Other than that I am in agreement that commits should be focused on one particular issue. It sounds like you would like the refactoring be done in a separate commit?
I will commit to newdyna, as I intended. As I said earlier, there are a few other issues I'm looking at. I will post about them on this forum. Once they're resolved, I will generate a merge request. Hopefully in a couple of weeks time?
Thanks,
Marios
PS: On a related topic, it seems that trac.nublado.org now points
to gitlab. I thought we'd agreed to keep the old infrastructure
available online for reference. What has changed?
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/CAOxTjFQ38CCH_gz-c_kMtL05wXcpD4OBEOc5tCbf0d1sDPkBvA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/8b02596f-a228-ee68-ed0b-6ac51a5973d4%40gmail.com.
Hi All,
This is to let you know that after further discussing with Gary, I decided it's best to commit now instead of postponing for two weeks or so. There were already a few distinct changesets on the branch, and adding more to them did not seem it'd be rewarding. The branch is now merged, and master will be exercised on tonight's tests. newdyna has been deleted.
Marios
PS: The merge commit message includes a synopsis (in bullet
points) of the commits that had occurred on the branch --
essentially the titles of each commit. I'm not sure how typical
this is, but I thought I'd give more context than a plain title
might provide.
PPS: Branches ported from SVN cannot be merged with Gitlab -- I think b/c the latter requires that the branches were spawned from master, while these were not. Neither can git-rebase be used on the command-line. The only way forward for these legacy branches is to use git-merge from the command line. FYI.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloudy-dev/CAOxTjFSf%3D%2BgKTkhDcSs9hMrmk3OBCqq69_8BOLrXqk9H2jpWBw%40mail.gmail.com.