We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ef1f6 commit f162e6cCopy full SHA for f162e6c
src/verify.c
@@ -605,6 +605,17 @@ void AssignStopTime(CONTROL *control, FILES *files, OPTIONS *options,
605
}
606
607
608
+void AssignBodyAges(BODY *body, CONTROL *control, FILES *files,
609
+ OPTIONS *options, SYSTEM *system) {
610
+ int iBody;
611
+
612
+ for (iBody = 0; iBody < files->iNumInputs - 1; iBody++) {
613
+ if (options[OPT_AGE].iLine[iBody + 1] == -1) {
614
+ body[iBody].dAge = system->dAge;
615
+ }
616
617
+}
618
619
void VerifyIntegration(BODY *body, CONTROL *control, FILES *files,
620
OPTIONS *options, SYSTEM *system,
621
fnIntegrate *fnOneStep) {
@@ -619,6 +630,7 @@ void VerifyIntegration(BODY *body, CONTROL *control, FILES *files,
630
VerifyOutputTime(control, files, options);
631
AssignIntegrationMethod(control, options, fnOneStep);
632
InitializeIntegrationFiles(body, control, files, options, system);
633
+ AssignBodyAges(body, control, files, options, system);
622
634
623
635
624
636
/*
0 commit comments