Skip to content

Commit

Permalink
Auto-format code using Clang-Format (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
github-actions[bot] and actions-user authored Jul 22, 2024
1 parent 6dc661a commit ad129ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/CostFunction3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ void CostFunction3D::initState(const int iteration)
{
for (int kIndex = 0; kIndex < kDim; kIndex++)
{
// int bIndex = varDim * iDim * jDim * kIndex + varDim * iDim * jIndex + varDim * iIndex +
// var;
// int bIndex = varDim * iDim * jDim * kIndex + varDim * iDim * jIndex + varDim * iIndex
// + var;
int64_t bIndex = INDEX(iIndex, jIndex, kIndex, iDim, jDim, varDim, var);
// int64_t *bIndex = (int64_t *)malloc(sizeof(int64_t));
// *bIndex = INDEX(iIndex, jIndex, kIndex, iDim, jDim, varDim, var);
Expand Down Expand Up @@ -2886,7 +2886,7 @@ void CostFunction3D::calcHmatrix()
// GPTLstart("CostFunction3D::calcHmatrix:nnz");
// Determine the number of non-zeros in H
//#pragma omp parallel for
//private(m,mi,hi,i,j,k,ii,iis,iie,jj,jjs,jje,kk,kks,kke,ibasis,jbasis,kbasis,iiNode,jjNode,kkNode,iNode,jNode,kNode,var,d,wgt_index,weight,cIndex)
// private(m,mi,hi,i,j,k,ii,iis,iie,jj,jjs,jje,kk,kks,kke,ibasis,jbasis,kbasis,iiNode,jjNode,kkNode,iNode,jNode,kNode,var,d,wgt_index,weight,cIndex)
////[8.1]
#pragma acc parallel loop vector gang vector_length(32) private(m,mi,hi,iis,iie,jjs,jje,kks,kke,ibasis,jbasis,kbasis,iiNode,jjNode,kkNode,iNode,jNode,kNode,var,d,wgt_index,weight,cIndex) reduction(+:nnz)
for (m = 0; m < mObs; m++)
Expand Down
6 changes: 3 additions & 3 deletions src/VarDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ bool VarDriver::readFrameCenters()
int hours = std::stoi(timestr.substr(0, 2));
if (hours > 23)
{ // (FIXME : NCAR) The original code added a day here, then subtracted 24 from the hours, is this needed?
// fixme date = date::make_zoned(startDate + date::days{1});
// hours -= 24;
// fixme date = date::make_zoned(startDate + date::days{1});
// hours -= 24;
}
else
{
Expand Down Expand Up @@ -1621,7 +1621,7 @@ bool VarDriver::read_terrain(std::string& filename, std::vector<MetObs>* metObVe
if (hours > 23)
{ // (FIXME : NCAR) The original code added a day here, then subtracted 24 from the hours, is this needed?
// fixme date = date::make_zoned(startDate + date::days{1});
// hours -= 24;
// hours -= 24;
}
else
{
Expand Down

0 comments on commit ad129ae

Please sign in to comment.