Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/src/core/energy_methods/RNA_LJ_BaseEnergy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ RNA_LJ_BaseEnergy::eval_atom_energy(

Vector const heavy_atom_i( rsd1.xyz( m ) );

for ( Size j = 1; j < pose.size(); j ++ ) {
for ( Size j = 1; j <= pose.size(); j ++ ) {
if ( i == j ) continue;

conformation::Residue const & rsd2( pose.residue( j ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ PoseToStructFileRepConverter::generate_secondary_structure_informations( core::p
core::Size new_tercount( 0 ); //we have to track this for ResidueInformation

//Now we are going to iterate through the pose, identifying secondary structure elements
for ( Size ires=1; ires<pose.size(); ++ires ) {
for ( Size ires=1; ires<=pose.size(); ++ires ) {
char secstruct = secstructs[ires-1]; //H, E, or L; note indexing fix
Size chain = pose.residue(ires).chain();
Size jres = ires;
Expand Down
6 changes: 3 additions & 3 deletions source/src/core/pack/interaction_graph/SurfacePotential.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void SurfacePotential::compute_residue_surface_energy( conformation::Residue con
// in (being considered) rotamer, not of the wild type sequence rotamer. In a small percent of the cases, using the wild type
// nbr_atom will give a different count than when using the new rotamer nbr_atom position.
Real distanceBetweenAtoms = 0.0;
for ( Size res2_position = 1; res2_position < pose.size(); ++res2_position ) {
for ( Size res2_position = 1; res2_position <= pose.size(); ++res2_position ) {

if ( resid == res2_position ) { continue; }
conformation::Residue const & rsd2 = pose.residue( res2_position );
Expand Down Expand Up @@ -419,7 +419,7 @@ void SurfacePotential::compute_pose_surface_energy( pose::Pose const & pose, Rea
conformation::Residue const & rsd1 = pose.residue( res1_position );
Real distanceBetweenAtoms = 0.0;

for ( Size res2_position = 1; res2_position < pose.size(); ++res2_position ) {
for ( Size res2_position = 1; res2_position <= pose.size(); ++res2_position ) {
if ( pose.residue( res2_position ).aa() > core::chemical::num_canonical_aas ) continue;
if ( symm_info && !symm_info->bb_is_independent(res2_position) ) continue;

Expand Down Expand Up @@ -462,7 +462,7 @@ void SurfacePotential::compute_pose_surface_energy( pose::Pose const & pose, Rea


total_surface_energy_ = 0.0;
for ( Size ii=1; ii < residue_surface_energy_.size(); ++ii ) {
for ( Size ii=1; ii <= residue_surface_energy_.size(); ++ii ) {
total_surface_energy_ += residue_surface_energy_[ii];
}

Expand Down
2 changes: 1 addition & 1 deletion source/src/core/pose/rna/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ detect_base_contacts( core::pose::Pose const & pose ) {
if ( i == j ) continue;
if ( ( pose.residue( i ).nbr_atom_xyz() - pose.residue( j ).nbr_atom_xyz() ).length() > NBR_DIST_CUTOFF ) continue;

for ( Size jj = 1; jj < pose.residue_type( j ).nheavyatoms(); jj++ ) {
for ( Size jj = 1; jj <= pose.residue_type( j ).nheavyatoms(); jj++ ) {
if ( pose.residue_type( j ).is_virtual( jj ) ) continue;
if ( ( pose.residue( i ).xyz( ii ) - pose.residue( j ).xyz( jj ) ).length() < CONTACT_DIST_CUTOFF ) {
// TR << "FOUND CONTACT " << pose.pdb_info()->chain(i) << ":" << pose.pdb_info()->number( i ) << " " << pose.residue(i).atom_name(ii)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ JumpUpstreamSelector::apply( core::pose::Pose const & pose ) const
ObjexxFCL::FArray1D_bool upstream( pose.size() );
pose.fold_tree().partition_by_jump( jump_, upstream );

for ( core::Size ii = 1; ii < upstream.size(); ++ii ) {
for ( core::Size ii = 1; ii <= upstream.size(); ++ii ) {
subset[ ii ] = upstream( ii );
}
return subset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void
CDRResidueSelector::set_cdrs( utility::vector1< CDRNameEnum > cdrs ){
cdrs_.clear();
cdrs_.resize(8, false);
for ( core::Size i = 1; i < cdrs.size(); ++i ) {
for ( core::Size i = 1; i <= cdrs.size(); ++i ) {
cdrs_[ cdrs[ i ] ] = true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ HierarchicalLevel::num_matching_levels( utility::vector1< core::Size > & address
utility::vector1< core::Size > & address2 ){
runtime_assert( address1.size() == address2.size() );
core::Size num_matching_levels = 0;
for ( core::Size ii = 1; ii < address1.size(); ii++ ) {
for ( core::Size ii = 1; ii <= address1.size(); ii++ ) {
if ( address1[ ii ] == address2[ ii ] ) {
num_matching_levels++;
}
Expand Down
4 changes: 2 additions & 2 deletions source/src/protocols/cartesian/md.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ void MolecularDynamics::applyForces_ConjugateGradient(

}
} else { // this block is for Step == 0 - its just a standard SD Step
for ( core::Size i = 1; i < cartom.size(); i++ ) {
for ( core::Size i = 1; i <= cartom.size(); i++ ) {
cartom[i].old_position = cartom[i].position; // save position (old position = current position)
cartom[i].old_force = cartom[i].force * forcemul; // save old forces
cartom[i].old_velocity = -cartom[i].force * forcemul; // save old directions, equal to old force
Expand Down Expand Up @@ -1483,7 +1483,7 @@ void MolecularDynamics::testCartesianDerivatives( core::scoring::ScoreFunction c
}


for ( core::Size i = 1; i < cartom.size(); i++ ) {
for ( core::Size i = 1; i <= cartom.size(); i++ ) {

if ( ( fabs( cartom[i].force.x() - numeriv[i].x() ) > 0.1 ) ||
( fabs( cartom[i].force.y() - numeriv[i].y() ) > 0.1 ) ||
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/cutoutdomain/CutOutDomain.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ core::Size
CutOutDomain::find_nearest_res( core::pose::Pose const & source, core::pose::Pose const & target, core::Size const res, core::Size const chain/*=0*/ ){
core::Real min_dist( 100000 ); core::Size nearest_res( 0 );
core::Size i;
for ( i = 1; i < target.size(); ++i ) {
for ( i = 1; i <= target.size(); ++i ) {
if ( target.residue( i ).is_ligand() ) continue;
if ( chain && target.residue( i ).chain() != chain ) continue;
// TR<<"the residue examnied is:"<<i<<target.residue(i).name1()<<std::endl;
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/denovo_design/components/FoldGraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ FoldGraph::compute_best_solution( SegmentNames const & staple_loops ) const
solutions[sol].push_back( new_visited );
} else {
Solution tmpset;
for ( core::Size t=1; t<solutions[sol].size(); ++t ) {
for ( core::Size t=1; t<=solutions[sol].size(); ++t ) {
tmpset.push_back( solutions[sol][t] );
}
tmpset.push_back( new_visited );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void DockingEnsemblePrepackProtocol::check_ensemble_member_compatibility() {

// if the chain identities are not equivalent, error!
// assuming ensemble 1 chains are first reported in parterns flag
for ( core::Size k=1; k<chains.size(); ++k ) {
for ( core::Size k=1; k<=chains.size(); ++k ) {
if ( chains[k] != partner1_chains[k] ) {
std::string exit_message = "Ensemble 1 member differs in chain identity from partners flag!\n";
exit_message = exit_message + "Member " + std::to_string(i) + ": " + chains[k] + " vs. " + partner1_chains[k] + "\n";
Expand All @@ -324,7 +324,7 @@ void DockingEnsemblePrepackProtocol::check_ensemble_member_compatibility() {

// if the chain identities are not equivalent, error!
// assuming ensemble 2 chains are second reported in parterns flag
for ( core::Size k=1; k<chains.size(); ++k ) {
for ( core::Size k=1; k<=chains.size(); ++k ) {
if ( chains[k] != partner2_chains[k] ) {
std::string exit_message = "Ensemble 2 member differs in chain identity from partners flag!\n";
exit_message = exit_message + "Member " + std::to_string(i) + ": " + chains[k] + " vs. " + partner2_chains[k] + "\n";
Expand Down
4 changes: 2 additions & 2 deletions source/src/protocols/docking/metrics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ calc_Fnonnat( const core::pose::Pose & pose, const core::pose::Pose & native_pos

//generate list of interface residues for partner 1 and partner 2
core::Size cutpoint = 0;
for ( core::Size i = 1; i < pose.size(); i++ ) {
for ( core::Size i = 1; i <= pose.size(); i++ ) {
if ( !temp_part( i ) ) {
cutpoint = i;
break;
Expand Down Expand Up @@ -596,7 +596,7 @@ calc_Fnonnat( const core::pose::Pose & pose, std::string const& list_file, DockJ
ObjexxFCL::FArray1D_bool temp_part ( pose.size(), false );
pose.fold_tree().partition_by_jump( rb_jump, temp_part );
core::Size cutpoint = 0;
for ( core::Size i = 1; i < pose.size(); i++ ) {
for ( core::Size i = 1; i <= pose.size(); i++ ) {
if ( !temp_part( i ) ) {
cutpoint = i;
break;
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/enzdes/EnzRepackMinimize.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ EnzRepackMinimize::apply( pose::Pose & pose )
core::kinematics::MoveMapOP movemap = enzprot->create_enzdes_movemap( pose, task_, minimize_prot_jumps_ );
core::scoring::ScoreFunctionCOP br_scorefxn = scorefxn_minimize_;
utility::vector1<core::Size> residues;
for ( core::Size i =1; i<pose.size(); ++i ) {
for ( core::Size i =1; i<=pose.size(); ++i ) {
if ( movemap->get_bb(i) ) residues.push_back(i);
}
TR<<"Now Backrub minimizing: min_sc "<<min_sc_<<" min_bb "<< min_bb_<<std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,8 +934,8 @@ StrandBundleFeatures::shortest_dis_sidechain(

for ( core::Size strand_j_res=0; strand_j_res < strand_j.get_size(); strand_j_res++ ) {
core::Size j_resnum = strand_j.get_start()+strand_j_res;
for ( core::Size i_AtomNum=1; i_AtomNum < pose.residue(i_resnum).natoms(); i_AtomNum++ ) {
for ( core::Size j_AtomNum=1; j_AtomNum < pose.residue(j_resnum).natoms(); j_AtomNum++ ) {
for ( core::Size i_AtomNum=1; i_AtomNum <= pose.residue(i_resnum).natoms(); i_AtomNum++ ) {
for ( core::Size j_AtomNum=1; j_AtomNum <= pose.residue(j_resnum).natoms(); j_AtomNum++ ) {
Real dis_sc_sc = pose.residue(i_resnum).xyz(i_AtomNum).distance(pose.residue(j_resnum).xyz(j_AtomNum));
if ( temp_shortest_dis > dis_sc_sc ) {
temp_shortest_dis = dis_sc_sc;
Expand Down
4 changes: 2 additions & 2 deletions source/src/protocols/fldsgn/MatchResidues.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ core::Real
MatchResidues::compute_comb( core::pose::Pose const & pose, VecSize const & comb ) const
{
std::map< core::id::AtomID, core::id::AtomID > atom_id_map;
for ( core::Size i = 1; i < comb.size(); i++ ) {
for ( core::Size i = 1; i <= comb.size(); i++ ) {
const core::id::AtomID mod_id(pose.residue_type( comb[i] ).atom_index( "CA" ), comb[i] );
const core::id::AtomID ref_id(pose.residue_type( reference_residues_indexes_[i] ).atom_index( "CA" ), reference_residues_indexes_[i]);
atom_id_map.insert( std::make_pair(mod_id, ref_id) );
Expand All @@ -75,7 +75,7 @@ MatchResidues::superimpose_comb( core::pose::Pose & pose, VecSize const & comb )
{
core::id::AtomID_Map< core::id::AtomID > atom_map;
core::pose::initialize_atomid_map( atom_map, pose, core::id::AtomID::BOGUS_ATOM_ID() );
for ( core::Size i = 1; i < comb.size(); ++i ) {
for ( core::Size i = 1; i <= comb.size(); ++i ) {
const core::id::AtomID mod_id(pose.residue_type( comb[i] ).atom_index( "CA" ), comb[i] );
const core::id::AtomID ref_id(pose.residue_type( reference_residues_indexes_[i] ).atom_index( "CA" ), reference_residues_indexes_[i]);
atom_map.set( mod_id, ref_id);
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/frag_picker/GrabAllCollector.hh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public:

inline void clear() override
{
for ( core::Size i=1; i<storage_.size(); ++i ) {
for ( core::Size i=1; i<=storage_.size(); ++i ) {
storage_[i].clear();
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/frag_picker/VallProvider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ VallChunkOP VallProvider::find_chunk(std::string pdb_id, char chain_id, core::Si
if ( c->get_chain_id() != chain_id ) {
continue;
}
for ( core::Size j = 1; j < c->size(); ++j ) {
for ( core::Size j = 1; j <= c->size(); ++j ) {
if ( c->at(j)->resi() == residue_id ) {
return c;
}
Expand Down
10 changes: 5 additions & 5 deletions source/src/protocols/frag_picker/quota/QuotaCollector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ bool QuotaCollector::add(std::pair<FragmentCandidateOP, scores::FragmentScoreMap

void QuotaCollector::list_pools(std::ostream & where) const {

for ( core::Size i=1; i<storage_.size(); ++i ) {
for ( core::Size i=1; i<=storage_.size(); ++i ) {
where << std::setw(3) << i;
for ( core::Size j=1; j<storage_[i].size(); ++j ) {
for ( core::Size j=1; j<=storage_[i].size(); ++j ) {
where << std::setw(10) << storage_[i][j]->get_pool_name() << "(" << std::setw(3) << storage_[i][j]->total_size() << ") ";
}
where << std::endl;
Expand All @@ -64,7 +64,7 @@ void QuotaCollector::list_pools(std::ostream & where) const {
void QuotaCollector::clear() {

for ( core::Size i=1; i<=storage_.size(); ++i ) {
for ( core::Size j=1; j<storage_[i].size(); ++j ) {
for ( core::Size j=1; j<=storage_[i].size(); ++j ) {
storage_[i][j]->clear();
}
}
Expand All @@ -73,7 +73,7 @@ void QuotaCollector::clear() {
core::Size QuotaCollector::count_candidates(core::Size pos) const {

core::Size cnt = 0;
for ( core::Size j=1; j<storage_[pos].size(); ++j ) {
for ( core::Size j=1; j<=storage_[pos].size(); ++j ) {
cnt += storage_[pos][j]->count_candidates();
}

Expand All @@ -83,7 +83,7 @@ core::Size QuotaCollector::count_candidates(core::Size pos) const {
core::Size QuotaCollector::count_candidates() const {
core::Size cnt = 0;
for ( core::Size i=1; i<=storage_.size(); ++i ) {
for ( core::Size j=1; j<storage_[i].size(); ++j ) {
for ( core::Size j=1; j<=storage_[i].size(); ++j ) {
cnt += storage_[i][j]->count_candidates();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ AtomBasedConstraintsScore::AtomBasedConstraintsScore(core::Size priority,
CachingScoringMethod(priority, lowest_acceptable_value, use_lowest, score_name) {

query_size_ = query_size;
for ( core::Size i = 1; i < constrainable_atoms.size(); ++i ) {
for ( core::Size i = 1; i <= constrainable_atoms.size(); ++i ) {
constrainable_atoms_.insert(std::pair<std::string, core::Size>(
constrainable_atoms[i], i));
}
Expand Down Expand Up @@ -97,7 +97,7 @@ void AtomBasedConstraintsScore::do_caching(VallChunkOP chunk) {
utility::vector1<bool> flag_row(constrainable_atoms_.size());
utility::vector1<numeric::xyzVector<core::Real> > row(
constrainable_atoms_.size());
for ( core::Size j = 1; j < constrainable_atoms_.size(); ++j ) {
for ( core::Size j = 1; j <= constrainable_atoms_.size(); ++j ) {
flag_row[j] = false;
row[j] = empty_one;
}
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/jd3/JobGenealogist.cc
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ JobGenealogist::newick_tree() const {
utility::vector1< std::list< JGResultNodeCAP > > parentless_results_for_input_source;
parentless_results_for_input_source.resize( num_input_sources_ );

for ( unsigned int i = 1; i < job_nodes_for_dag_node_.size(); ++i ) {
for ( unsigned int i = 1; i <= job_nodes_for_dag_node_.size(); ++i ) {
for ( auto const & job_node_cop : job_nodes_for_dag_node_[ i ] ) {
debug_assert( job_node_cop != nullptr );
if ( job_node_cop->parents().empty() ) {
Expand Down
4 changes: 2 additions & 2 deletions source/src/protocols/legacy_sewing/conformation/Assembly.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ Assembly::natives_select(
utility::vector1<core::Size>
Assembly::pose_loop_anchors() const {
utility::vector1<core::Size> loop_anchors;
for ( core::Size i=1; i<segments_.size(); ++i ) {
for ( core::Size i=1; i<=segments_.size(); ++i ) {
if ( !segments_.has_next(i) ) {
loop_anchors.push_back(pose_num(segments_[i].model_id_, segments_[i].residues_.back().resnum_));
}
Expand All @@ -1271,7 +1271,7 @@ Assembly::pose_loop_anchors() const {
utility::vector1<core::Size>
Assembly::disconnected_segments() const {
utility::vector1<core::Size> disconnected_segments;
for ( core::Size i=1; i<segments_.size(); ++i ) {
for ( core::Size i=1; i<=segments_.size(); ++i ) {
if ( !segments_.has_next(i) ) {
disconnected_segments.push_back(i);
}
Expand Down
6 changes: 3 additions & 3 deletions source/src/protocols/loops/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void addScoresForLoopParts(

core::Size nres = pose.size();
utility::vector1< core::Size > all_loop_list;
for ( core::Size i = 1; i < nres; i ++ ) {
for ( core::Size i = 1; i <= nres; i ++ ) {
if ( loops.is_loop_residue(i) ) all_loop_list.push_back( i );
}
scorefxn(pose);
Expand All @@ -241,7 +241,7 @@ void addScoresForLoopParts(
}
utility::vector1< core::Size > loop_list;
utility::vector1< core::Size > non_loop_list;
for ( core::Size i = 1; i < nres; i ++ ) {
for ( core::Size i = 1; i <= nres; i ++ ) {
if ( ( i < loops[l].start() ) || ( i > loops[l].stop() ) ) {
loop_list.push_back( i );
} else {
Expand Down Expand Up @@ -544,7 +544,7 @@ protocols::loops::Loops find_non_protein_chunks(core::pose::Pose const & pose) {
Loop new_loop;
bool chunk_started = false;

for ( core::Size ires = 1; ires < pose.size(); ++ires ) {
for ( core::Size ires = 1; ires <= pose.size(); ++ires ) {
if ( pose.residue_type(ires).is_protein() ) continue;
if ( !chunk_started ) {
new_loop.set_start(ires);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ bool UpstreamDownstreamCollisionFilter::passes_etable_filter( match_dspos1 const

using namespace core::scoring;
EnergyMap emap;
for ( core::Size ii = 1; ii < m.upstream_hits.size(); ++ii ) {
for ( core::Size ii = 1; ii <= m.upstream_hits.size(); ++ii ) {
if ( ii == m.originating_geom_cst_for_dspos ) continue; // don't collision check since we've presumably done so already
if ( us_ds_chemical_bond_[ ii ] ) continue;
for ( core::Size jj = 1; jj <= downstream_pose_->size(); ++jj ) {
Expand Down
4 changes: 2 additions & 2 deletions source/src/protocols/membrane/MPLipidAccessibility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void MPLipidAccessibility::apply( core::pose::Pose & pose ){
}

// go through slices
for ( core::Size s = 1; s < slice_zmin_.size(); ++s ) {
for ( core::Size s = 1; s <= slice_zmin_.size(); ++s ) {

// go through residues
for ( core::Size r = 1; r <= resi_[ s ].size(); ++r ) {
Expand Down Expand Up @@ -502,7 +502,7 @@ void MPLipidAccessibility::fill_up_slices( core::pose::Pose & pose ) {
void MPLipidAccessibility::compute_slice_com(){

// go through slices and compute COMs
for ( core::Size s = 1; s < slice_zmin_.size(); ++s ) {
for ( core::Size s = 1; s <= slice_zmin_.size(); ++s ) {

core::Vector com( 0, 0, 0 );

Expand Down
1 change: 1 addition & 0 deletions source/src/protocols/membrane/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ core::Size create_membrane_foldtree_anchor_com( core::pose::Pose & pose ) {
utility::vector1< core::Size > anchors;

// get residues closest to COMs for all chains which will be new jump anchor residues
// needs to < chains.size() because the MEM is an additional chain
for ( core::Size i = 1; i < chains.size(); ++i ) {
core::Size anchor = rsd_closest_to_chain_com( pose, chains[ i ] );
anchors.push_back( anchor );
Expand Down
2 changes: 1 addition & 1 deletion source/src/protocols/moves/PyMOLMover.cc
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ void PyMOLMover::send_membrane_planes( Pose const & pose ) {
// Compute radius of gyration of the pose
utility::vector1< bool > relevant_residues;
relevant_residues.resize( pose.size() );
for ( core::Size i = 1; i < relevant_residues.size(); ++i ) {
for ( core::Size i = 1; i <= relevant_residues.size(); ++i ) {
relevant_residues[i] = true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ DecomposeAndReweightEnergiesCalculator::nonzero_weight_score_types() const
utility::vector1<core::scoring::ScoreType> score_types;

for ( int i = 1; i < core::scoring::n_score_types; ++i ) {
for ( core::Size j = 1; j < weight_map_vector.size(); ++j ) {
for ( core::Size j = 1; j <= weight_map_vector.size(); ++j ) {
if ( weight_map_vector[j][core::scoring::ScoreType(i)] ) {
score_types.push_back(core::scoring::ScoreType(i));
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ SurfaceCalculator::print( std::string const & key ) const {
} else if ( key == "residue_surface" ) {
std::ostringstream ss;
ss << "[";
for ( core::Size ii=1; ii < residue_surface_energy_.size(); ++ii ) {
for ( core::Size ii=1; ii <= residue_surface_energy_.size(); ++ii ) {
ss << ii << ":";
if ( residue_surface_energy_[ ii ] != 0.00 ) {
ss << ObjexxFCL::format::F(8,4, residue_surface_energy_[ ii ]);
Expand Down
Loading