src/Backends/Helmholtz/Fluids/FluidLibrary.cpp
/// Add all the fluid entries in the JSON-encoded string passed in
Add all the fluid entries in the JSON-encoded string passed in
Add all the fluid entries in the JSON - encoded string passed in
void JSONFluidLibrary::add_many(const std::string &JSON_string){
    if (library.is_empty()){ load(); }
    rapidjson::Document doc;
    cpjson::JSON_string_to_rapidjson(JSON_string, doc);
    library.add_many(doc);
}
void JSONFluidLibrary :: add_many ( const std :: string & JSON_string ) { if ( library . is_empty ( ) ) { load ( ) ; } rapidjson :: Document doc ; cpjson :: JSON_string_to_rapidjson ( JSON_string , doc ) ; library . add_many ( doc ) ; }
Add all the fluid entries in the JSON-encoded string passed in
Add all the fluid entries in the JSON - encoded string passed in
// First load all the baseline fluids // Then, load the fluids we would like to add