| Next || Previous || Top |

INCLUDE$

This keyword is used to insert the contents of another file into the input or database file. The inserted file may extend the data block of the preceding keyword and (or) add additional keyword data blocks. Files that are inserted may contain further INCLUDE$ statements. The files are included dynamically, which means that an input file can write a file with DUMP or USER_PUNCH and subsequently include that file into the input stream.

Example

Input file:

	SOLUTION
		pH	6
	INCLUDE$ A
	END
 

File A:

		Na	2
		S(6)	1
	INCLUDE$ B
 

File B:

	EQUILIBRIUM_PHASES
		Calcite
 

Is equivalent to the following input:

	SOLUTION
		pH	6
		Na	2
		S(6)	1
	EQUILIBRIUM_PHASES
		Calcite
	END
Notes

The INCLUDE$ keyword is used to include a file into the input file. The inclusion is done as PHREEQC is processing the input file and running simulations. Thus, it is possible to use a DUMP or SELECTED_OUTPUT data block to write a file that is included at a later point in the run. The keyword may be used in database files or input files.

Example problems

The keyword INCLUDE$ is used in example problems 8, 20, and 21.

Related keywords

DUMP and SELECTED_OUTPUT .


| Next || Previous || Top |