Skip to content

Commit

Permalink
remove some old comments about Fortran (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jan 17, 2025
1 parent 057363c commit 046cf07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
5 changes: 2 additions & 3 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ Castro::initData ()
BL_PROFILE("Castro::initData()");

//
// Loop over grids, call FORTRAN function to init with data.
// Loop over grids, call initialization functions
//
#if AMREX_SPACEDIM > 1
const Real* dx = geom.CellSize();
Expand Down Expand Up @@ -3716,8 +3716,7 @@ Castro::extern_init ()
std::cout << "reading extern runtime parameters ..." << std::endl;
}

// grab them from Fortran to C++; then read any C++ parameters directly
// from inputs (via ParmParse)
// read any runtime parameters directly from inputs (via ParmParse)
init_extern_parameters();

}
Expand Down
3 changes: 1 addition & 2 deletions Source/driver/Castro_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -975,8 +975,7 @@ Castro::variableSetUp ()
//
// We want a derived type that corresponds to the number of particles
// in each cell. We only intend to use it in plotfiles for debugging
// purposes. We'll just use the DERNULL since don't do anything in
// fortran for now. We'll actually set the values in writePlotFile().
// purposes. We'll actually set the values in writePlotFile().
//
derive_lst.add("particle_count",IndexType::TheCellType(),1,ca_dernull,the_same_box);
derive_lst.addComponent("particle_count",desc_lst,State_Type,URHO,1);
Expand Down
3 changes: 0 additions & 3 deletions Source/driver/Derive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ extern "C"
{
#endif

// Note that in the following routines, we are NOT passing
// several variables to Fortran that would be unused.

// These routines are called in an MFIter loop, so we do not
// need to explicitly synchronize after GPU kernels.

Expand Down
4 changes: 1 addition & 3 deletions Source/rotation/rotation_sources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,7 @@ Castro::corrrsrc(const Box& bx,

// Corrector step for the rotation source terms. This is applied
// after the hydrodynamics update to fix the time-level n
// prediction and add the time-level n+1 data. This subroutine
// exists outside of the Fortran module above because it needs to
// be called directly from C++.
// prediction and add the time-level n+1 data.

// uold and unew are the old and new time state data

Expand Down

0 comments on commit 046cf07

Please sign in to comment.