Forum: Forums topas RSS
Terminating a Refinement Based on Specified Condition:
Gmattei #1
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Terminating a Refinement Based on Specified Condition:
Just a quick question:

I'm currently using TOPAS 6 Academic, and I'd like to get a sense for how much continue_after_convergence impacts the final output Rwp value for a number of different structural models.

When using continue_after_convergence, I can specify the maximum number of iterations after which TOPAS should terminate the refinement. But alternatively, I'd like to specify the maximum number of cycles as the conditional, since each structural model may require a different number of iterations per cycle. I'd like to see how the Rwp for each structural model responds to an equivalent number of cycles.

Looking through the manual, I haven't been able to find a keyword to terminate the refinement process using the total number of cycles as the conditional instead of the iteration. I've also tested keywords (Ex: stop_when), but this only seems to end the current cycle.

In short: is there a simple way to designate a keyword specifying the maximum number of cycles for TOPAS to perform when using continue after convergence?

Thanks for the help,
-Gerry
This post was edited on 2018-06-08, 20:13 by Gmattei.
AlanCoelho #2
Member since Aug 2011 · 231 posts
Group memberships: Members
Show profile · Link to this post
HI Gerry

There's an indirect way to do what you want; it looks like:

    continue_after_convergence
    iters 1000000
    prm dummy 1 val_on_continue = If(Cycle == 10, Get(iters) = 0, 0);


Even though 'dummy' would be flagged as not part of the refinement, its val_on_continue is still executed on convergence.

cheers
alan
Gmattei #3
Member for 2 weeks · 2 posts
Group memberships: Members
Show profile · Link to this post
Hi Alan,

I just tested out the modified input file and it worked perfectly, thanks again for the help!

-Gerry
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Not logged in. · Lost password · Register
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2018-06-25, 15:37:46 (UTC +00:00)