Skip to content

Commit

Permalink
.map -> .log
Browse files Browse the repository at this point in the history
  • Loading branch information
RolfSander committed Jul 9, 2022
1 parent fd5e0ea commit 5c28205
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
*_Jacobian*
*_JacobianSP*
*_LinearAlgebra*
*.log
*_Main*
*.map
*_mex_Fun*
*_mex_Hessian*
*_mex_Jac_SP*
Expand Down
4 changes: 2 additions & 2 deletions docs/source/getting_started/02_running_kpp_sample_mech.rst
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ to:
KPP creates Fortran90 beginning with the mechanism name (which is
:file:`ROOT_` = :file:`small_strato_` in this example). KPP also
generates a human-readable summary of the mechanism
(:file:`small_strato.map`) as well as the Makefile
(:file:`small_strato.log`) as well as the Makefile
:file:`Makefile_small_strato` that can be used to build the executable.

.. _example_step_4:
Expand Down Expand Up @@ -409,7 +409,7 @@ files generated by the Fortran compiler, type:
$ make -f Makefile_small_strato clean
If you also wish to remove all the files that were generated by KPP
(i.e. :file:`small_strato.map` and :file:`small_strato_*.f90`), type:
(i.e. :file:`small_strato.log` and :file:`small_strato_*.f90`), type:

.. code-block:: console
Expand Down
6 changes: 3 additions & 3 deletions docs/source/using_kpp/05_output_from_kpp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1072,13 +1072,13 @@ However, if no driver was selected (i.e. :command:`#DRIVER none`), it is
necessary to add the name of the main program file manually to the
Makefile.

.. _Map:
.. _Log:

============
The map file
The log file
============

The map file :file:`ROOT.map` contains a summary of all the functions,
The log file :file:`ROOT.log` contains a summary of all the functions,
subroutines and data structures defined in the code file, plus a
summary of the numbering and category of the species involved.

Expand Down
6 changes: 3 additions & 3 deletions src/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ FILE * sparse_stoicmFile = 0;
FILE * stochasticFile = 0;
FILE * global_dataFile = 0;
FILE * hessianFile = 0;
FILE * mapFile = 0;
FILE * logFile = 0;
FILE * makeFile = 0;
FILE * monitorFile = 0;
FILE * mex_funFile = 0;
Expand Down Expand Up @@ -393,11 +393,11 @@ char *FUNCALL[] = { "FUN_SPLIT( Y, FIX, RCONST, Ydot, P, D )", /* index 0 = spli
system( cmd );
}

void MapFunctionComment( int f, int *vars )
void LogFunctionComment( int f, int *vars )
{
FILE *oldf;

oldf = UseFile( mapFile );
oldf = UseFile( logFile );
FunctionStart( f, vars );
FlushBuf();
UseFile( oldf );
Expand Down
4 changes: 2 additions & 2 deletions src/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extern FILE * hessianFile;
extern FILE * integratorFile;
extern FILE * jacobianFile;
extern FILE * linalgFile;
extern FILE * mapFile;
extern FILE * logFile;
extern FILE * makeFile;
extern FILE * monitorFile;
extern FILE * mex_funFile;
Expand Down Expand Up @@ -121,7 +121,7 @@ void F90_Inline( char *fmt, ... );
void MATLAB_Inline( char *fmt, ... );
void IncludeFile( char * fname );
void IncludeCode( char *fmt, ... );
void MapFunctionComment( int f, int *vars );
void LogFunctionComment( int f, int *vars );

// Added attr argument to the function prototype for DefineVariable
// -- Bob Yantosca (25 Apr 2002)
Expand Down
6 changes: 3 additions & 3 deletions src/code_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ int narg;

FlushBuf();

MapFunctionComment( f, vars );
LogFunctionComment( f, vars );
}

void C_FunctionEnd( int f )
Expand Down Expand Up @@ -566,8 +566,8 @@ void Use_C()
OpenFile( &sparse_hessFile, rootFileName, "_HessianSP.c",
"Sparse Hessian Data Structures File" );
}
OpenFile( &mapFile, rootFileName, ".map",
"Map File with Human-Readable Information" );
OpenFile( &logFile, rootFileName, ".log",
"Log File with Human-Readable Information" );
OpenFile( &monitorFile, rootFileName, "_Monitor.c",
"Utility Data Initialization" );
}
6 changes: 3 additions & 3 deletions src/code_f77.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ int narg;
bprintf("\n");
FlushBuf();

MapFunctionComment( f, vars );
LogFunctionComment( f, vars );
}

/*************************************************************************************************/
Expand Down Expand Up @@ -589,8 +589,8 @@ void Use_F()
OpenFile( &sparse_hessFile, rootFileName, "_HessianSP.f",
"Sparse Hessian Data Structures File" );
}
OpenFile( &mapFile, rootFileName, ".map",
"Map File with Human-Readable Information" );
OpenFile( &logFile, rootFileName, ".log",
"Log File with Human-Readable Information" );
OpenFile( &monitorFile, rootFileName, "_Monitor.f",
"Initialization of Utility Data Structures" );
}
8 changes: 4 additions & 4 deletions src/code_f90.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ int narg;
bprintf("\n");
FlushBuf();

MapFunctionComment( f, vars );
LogFunctionComment( f, vars );
}

/*************************************************************************************************/
Expand Down Expand Up @@ -852,9 +852,9 @@ void Use_F90()
"Sparse Hessian Data Structures File" );
}

// .map
OpenFile( &mapFile, rootFileName, ".map",
"Map File with Human-Readable Information" );
// .log
OpenFile( &logFile, rootFileName, ".log",
"Log File with Human-Readable Information" );

// _Monitor
sprintf( buf, "_Monitor.%s", f90Suffix );
Expand Down
6 changes: 3 additions & 3 deletions src/code_matlab.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ time_t t;

FlushBuf();

MapFunctionComment( f, vars );
LogFunctionComment( f, vars );
}

/*************************************************************************************************/
Expand Down Expand Up @@ -700,8 +700,8 @@ void Use_MATLAB()
OpenFile( &sparse_hessFile, rootFileName, "_HessianSP.m",
"Sparse Hessian Data Structures File" );
}
OpenFile( &mapFile, rootFileName, ".map",
"Map File with Human-Readable Information" );
OpenFile( &logFile, rootFileName, ".log",
"Log File with Human-Readable Information" );
OpenFile( &monitorFile, rootFileName, "_Monitor.m",
"Utility Data Definition File" );
}
8 changes: 4 additions & 4 deletions src/gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2749,11 +2749,11 @@ char lhsbuf[MAX_EQNLEN], rhsbuf[MAX_EQNLEN];


/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
void GenerateMap()
void GenerateLog()
{
int i, dn;

UseFile( mapFile );
UseFile( logFile );

WriteAll("### Options -------------------------------------------\n");
NewLines(1);
Expand Down Expand Up @@ -3499,7 +3499,7 @@ int n;
if ( useLang == F90_LANG )
GenerateF90Modules('h');

GenerateMap();
GenerateLog();

printf("\nKPP is generating the monitor data:");
printf("\n - %s_Monitor",rootFileName);
Expand Down Expand Up @@ -3632,7 +3632,7 @@ int n;
if( integratorFile ) fclose( integratorFile );
if( jacobianFile ) fclose( jacobianFile );
if( linalgFile ) fclose( linalgFile );
if( mapFile ) fclose( mapFile );
if( logFile ) fclose( logFile );
if( makeFile ) fclose( makeFile );
if( monitorFile ) fclose( monitorFile );
if( mex_funFile ) fclose( mex_funFile );
Expand Down
2 changes: 1 addition & 1 deletion util/Makefile_c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ clean:

distclean:
rm -f $(SPOBJ) $(OBJ) KPP_ROOT.exe KPP_ROOT*.dat \
KPP_ROOT_*.c KPP_ROOT_*.h KPP_ROOT*.map KPP_ROOT_*.mexglx
KPP_ROOT_*.c KPP_ROOT_*.h KPP_ROOT*.log KPP_ROOT_*.mexglx

KPP_ROOT_Monitor.o: KPP_ROOT_Monitor.c $(HEADERS)
$(CC) $(COPT) -c $<
Expand Down
4 changes: 2 additions & 2 deletions util/Makefile_f
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ mex: $(HEADERS) $(SPOBJ) $(OBJ)
$(MEX) FC#$(FC) -fortran -O KPP_ROOT_mex_Hessian.f $(SPOBJ) $(OBJ)

clean:
rm -f $(SPOBJ) $(OBJ) KPP_ROOT.exe KPP_ROOT.map \
rm -f $(SPOBJ) $(OBJ) KPP_ROOT.exe KPP_ROOT.log \
KPP_ROOT.dat

distclean:
rm -f $(SPOBJ) $(OBJ) KPP_ROOT.exe KPP_ROOT.map \
rm -f $(SPOBJ) $(OBJ) KPP_ROOT.exe KPP_ROOT.log \
KPP_ROOT.dat KPP_ROOT*.f KPP_ROOT*.h

KPP_ROOT_Monitor.o: KPP_ROOT_Monitor.f $(HEADERS)
Expand Down
4 changes: 2 additions & 2 deletions util/Makefile_f90
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,11 @@ mex: $(ALLOBJ)
clean:
rm -f *.o *.mod \
KPP_ROOT*.dat KPP_ROOT.exe KPP_ROOT*.mexglx \
KPP_ROOT.map
KPP_ROOT.log

distclean:
rm -f *.o *.mod \
KPP_ROOT*.dat KPP_ROOT.exe KPP_ROOT.map \
KPP_ROOT*.dat KPP_ROOT.exe KPP_ROOT.log \
KPP_ROOT_*.f90 KPP_ROOT_*.f90 KPP_ROOT_*.mexglx \
results*.m

Expand Down
4 changes: 2 additions & 2 deletions util/Makefile_upper_F90
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ mex: $(ALLOBJ)
clean:
rm -f *.o *.mod \
KPP_ROOT*.dat KPP_ROOT.exe KPP_ROOT*.mexglx \
KPP_ROOT.map
KPP_ROOT.log

distclean:
rm -f *.o *.mod \
KPP_ROOT*.dat KPP_ROOT*.exe KPP_ROOT.map \
KPP_ROOT*.dat KPP_ROOT*.exe KPP_ROOT.log \
KPP_ROOT_*.f90 KPP_ROOT_*.F90 KPP_ROOT_*.mexglx \
results*.m

Expand Down

0 comments on commit 5c28205

Please sign in to comment.