Move component-level calculations out of instance loop
This commit is contained in:
parent
5c62ad725a
commit
56949560c4
@ -352,9 +352,10 @@ public class BarrowmanCalculator extends AbstractAerodynamicCalculator {
|
|||||||
for(Map.Entry<RocketComponent, ArrayList<InstanceContext>> entry: imap.entrySet() ) {
|
for(Map.Entry<RocketComponent, ArrayList<InstanceContext>> entry: imap.entrySet() ) {
|
||||||
final RocketComponent c = entry.getKey();
|
final RocketComponent c = entry.getKey();
|
||||||
|
|
||||||
// iterate across component instances
|
//Handle Overriden CD for Whole Rocket
|
||||||
final ArrayList<InstanceContext> contextList = entry.getValue();
|
if(c.isCDOverridden()) {
|
||||||
for(InstanceContext context: contextList ) {
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Calculate the roughness-limited friction coefficient
|
// Calculate the roughness-limited friction coefficient
|
||||||
Finish finish = ((ExternalComponent) c).getFinish();
|
Finish finish = ((ExternalComponent) c).getFinish();
|
||||||
@ -385,10 +386,9 @@ public class BarrowmanCalculator extends AbstractAerodynamicCalculator {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Handle Overriden CD for Whole Rocket
|
// iterate across component instances
|
||||||
if(c.isCDOverridden()) {
|
final ArrayList<InstanceContext> contextList = entry.getValue();
|
||||||
continue;
|
for(InstanceContext context: contextList ) {
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Calculate the friction drag:
|
// Calculate the friction drag:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user