Skip to content

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Jan 16, 2024

See #3119

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@njzjz njzjz requested a review from wanghan-iapcm January 16, 2024 03:51
@github-actions github-actions bot added the C++ label Jan 16, 2024
@codecov
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Attention: 46 lines in your changes are missing coverage. Please review.

Comparison is base (ed76cff) 76.26% compared to head (e400f9b) 76.23%.

Files Patch % Lines
source/api_cc/src/DataModifierTF.cc 78.06% 23 Missing and 11 partials ⚠️
source/api_cc/src/DataModifier.cc 55.55% 7 Missing and 1 partial ⚠️
source/api_cc/include/DataModifierTF.h 33.33% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3148      +/-   ##
==========================================
- Coverage   76.26%   76.23%   -0.03%     
==========================================
  Files         272      274       +2     
  Lines       25537    25570      +33     
  Branches     1583     1587       +4     
==========================================
+ Hits        19475    19494      +19     
- Misses       5135     5147      +12     
- Partials      927      929       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
assert(output_f.dims() == 2 && "dim of output tensor should be 2");
assert(output_v.dims() == 2 && "dim of output tensor should be 2");
assert(output_av.dims() == 2 && "dim of output tensor should be 2");
int nframes = output_f.dim_size(0);

Check notice

Code scanning / CodeQL

Unused local variable

Variable nframes is not used.
assert(output_v.dims() == 2 && "dim of output tensor should be 2");
assert(output_av.dims() == 2 && "dim of output tensor should be 2");
int nframes = output_f.dim_size(0);
int natoms = output_f.dim_size(1) / 3;

Check notice

Code scanning / CodeQL

Unused local variable

Variable natoms is not used.
const InputNlist& lmp_list) {
// firstly do selection
int nall = datype_.size();
int nloc = nall - nghost;

Check notice

Code scanning / CodeQL

Unused local variable

Variable nloc is not used.
// sort atoms
AtomMap atommap(datype_real.begin(), datype_real.begin() + nloc_real);
assert(nloc_real == atommap.get_type().size());
const std::vector<int>& sort_fwd_map(atommap.get_fwd_map());

Check notice

Code scanning / CodeQL

Unused local variable

Variable sort_fwd_map is not used.
@wanghan-iapcm wanghan-iapcm requested review from CaRoLZhangxy and removed request for CaRoLZhangxy January 17, 2024 01:48
njzjz and others added 2 commits January 16, 2024 21:08
@wanghan-iapcm wanghan-iapcm merged commit 1efc7f8 into deepmodeling:devel Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants